Function at 0x4b8b3f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5022ed
mov eax, dword fs:[0]
push eax
sub esp, 0x338
mov eax, dword [0x5415b0]
xor eax, esp
mov dword [esp + 0x330], eax
push ebx
push esi
push edi
mov eax, dword [0x5415b0]
xor eax, esp
push eax
lea eax, [esp + 0x348]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
cmp dword [esi + 0x10], 5
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
jne 0x4b8ff7
mov ecx, dword [0x5478e4]
test ecx, ecx
je 0x4b8bbc
call fcn.0041e758
push 1
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
push dword [esi]
mov ecx, ebx
call fcn.004b87dc
cmp eax, 0xffffffff
je 0x4b8bfb
test eax, eax
js 0x4b8ff7
push eax
lea ecx, [ebx + 0x10]
call fcn.004b6db9
jmp 0x4b8ff7
mov eax, dword [0x542750]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x350], eax
lea eax, [esp + 0x2c]
push dword [esi]
mov dword [esp + 0x2c], 3
push 0x51e100
push eax
call fcn.0040301c
add esp, 0xc
mov dword [esp + 0x3c], 1
lea ecx, [esp + 0x30]
push edi
call fcn.004028a2
push 0x20
call fcn.004d6a5a
pop ecx
mov dword [esp + 0x24], eax
mov byte [esp + 0x350], 1
test eax, eax
je 0x4b8c71
lea ecx, [esp + 0x28]
push ecx
mov ecx, eax
call fcn.004b7791
jmp 0x4b8c73
xor eax, eax
mov ecx, dword [0x5478e4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x330]
push eax
call fcn.00422748
lea ecx, [esp + 0x40]
call fcn.00442128
mov byte [esp + 0x350], 2
lea ecx, [esp + 0x44]
mov eax, dword [esi]
mov dword [esp + 0x40], eax
lea eax, [esi + 0x28]
push eax
call fcn.00402a9f
lea eax, [esi + 0x78]
push eax
lea ecx, [esp + 0x4c]
call fcn.00402a9f
push edi
lea ecx, [esp + 0x50]
call fcn.004028a2
push dword [esp + 0x1c]
lea ecx, [esp + 0x54]
call fcn.004028a2
push dword [esp + 0x18]
lea ecx, [esp + 0x58]
call fcn.004028a2
push dword [esp + 0x20]
lea ecx, [esp + 0x60]
call fcn.004028a2
push 0x548410
lea ecx, [esp + 0x64]
call fcn.00402a9f
lea eax, [esi + 0xb0]
push eax
lea ecx, [esp + 0x68]
call fcn.00412d49
mov eax, dword [esi + 0x74]
xor ecx, ecx
cmp dword [eax - 8], ecx
mov eax, dword [esp + 0x10]
sete cl
mov dword [esp + 0x70], ecx
test eax, eax
je 0x4b8d31
push eax
lea ecx, [esp + 0x5c]
call fcn.004028a2
jmp 0x4b8d61
mov edx, dword [esi]
push ecx
lea ecx, [esp + 0x14]
call fcn.004645c9
pop ecx
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x354], 3
call fcn.00402a9f
lea ecx, [esp + 0x10]
mov byte [esp + 0x350], 2
call fcn.00403030
push 0x1bc
call fcn.004d6a5a
pop ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x350], 4
test eax, eax
je 0x4b8d90
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00442a66
mov edi, eax
mov dword [esp + 0x1c], eax
jmp 0x4b8d96
xor edi, edi
mov dword [esp + 0x1c], edi
push ecx
push ecx
mov eax, esp
mov byte [esp + 0x358], 2
push 0
push 0x56000000
and dword [eax], 0
push dword [esi + 0x28]
push ecx
mov eax, esp
lea ecx, [esp + 0x348]
push dword [0x547b10]
mov dword [eax], ecx
mov ecx, edi
call fcn.004231f2
push ecx
mov ecx, dword [esp + 0x18]
push edi
call fcn.004b7854
lea eax, [esp + 0x24]
push eax
lea ecx, [ebx + 4]
call fcn.00410937
push dword [ebx + 0x4c]
lea ecx, [ebx + 0x10]
call fcn.004b6d92
mov dword [esp + 0x14], eax
mov ecx, 0x284
mov eax, dword [ebx + 0x74]
sub eax, dword [ebx + 0x70]
cdq
idiv ecx
lea ecx, [esp + 0x74]
mov dword [esp + 0x18], eax
call fcn.004b4ff5
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x80]
mov byte [esp + 0x350], 5
mov ecx, dword [esi + 0x28]
sub edx, ecx
mov dword [esp + 0x74], eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
add ecx, 2
test ax, ax
jne 0x4b8e26
mov eax, dword [esp + 0x24]
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], 2
test eax, eax
je 0x4b8e68
push ecx
mov ecx, eax
call fcn.004b7888
mov eax, dword [esp + 0x14]
cmp dword [eax], 6
jne 0x4b8e68
push 0
call fcn.004228b9
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x1c]
lea ecx, [ebx + 0x10]
call fcn.004b5ed7
lea eax, [esp + 0x310]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [esp + 0x318]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], edi
call fcn.00444e8a
mov ecx, dword [esp + 0x31c]
sub ecx, eax
mov dword [esp + 0x20], ecx
cmp edi, dword [esi + 4]
jl 0x4b8eb9
cmp ecx, dword [esi + 8]
jge 0x4b8fca
lea eax, [esp + 0x310]
push eax
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x320]
push eax
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [esi + 4]
mov eax, dword [esp + 0x10]
cmp eax, edi
jge 0x4b8ef7
sub edi, eax
add edi, dword [esp + 0x318]
jmp 0x4b8efe
mov edi, dword [esp + 0x318]
mov esi, dword [esi + 8]
mov eax, dword [esp + 0x20]
cmp eax, esi
jge 0x4b8f14
sub esi, eax
add esi, dword [esp + 0x31c]
jmp 0x4b8f1b
mov esi, dword [esp + 0x31c]
push 0
lea eax, [esp + 0x304]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov edx, dword [esp + 0x308]
mov eax, edx
sub eax, dword [esp + 0x300]
mov ecx, dword [esp + 0x30c]
mov dword [esp + 0x10], eax
cmp edi, eax
jg 0x4b8fa3
mov eax, ecx
sub eax, dword [esp + 0x304]
cmp esi, eax
jg 0x4b8f9f
mov eax, dword [esp + 0x320]
add eax, edi
cmp eax, edx
jg 0x4b8f80
mov eax, dword [esp + 0x324]
add eax, esi
cmp eax, ecx
jg 0x4b8f80
push 6
push esi
push edi
xor eax, eax
push eax
push eax
push eax
jmp 0x4b8fbe
sub ecx, esi
push 4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
push esi
push edi
push eax
mov eax, dword [esp + 0x318]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
jmp 0x4b8fbc
mov eax, dword [esp + 0x10]
sub ecx, dword [esp + 0x304]
push 4
push ecx
push eax
push dword [esp + 0x310]
push dword [esp + 0x310]
push 0
push dword [ebx + 0x100]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [esp + 0x74]
call fcn.004b5d79
lea ecx, [esp + 0x40]
call fcn.00442c29
lea ecx, [esp + 0x34]
call fcn.00403030
lea ecx, [esp + 0x30]
call fcn.00403030
lea ecx, [esp + 0x2c]
call fcn.00403030
mov ecx, dword [esp + 0x348]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x330]
xor ecx, esp
call fcn.004d5e2a
mov esp, ebp
pop ebp
ret 0x18