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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x539a28
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
mov ebp, dword [esp + 0x90]
push esi
push edi
mov edi, ecx
push ebp
lea ecx, [esp + 0x28]
call fcn.004be6c0
cmp dword [ebp + 0xe4], 5
jne 0x4b7833
mov ecx, dword [esp + 0x24]
push 0x29
push 0x2b
mov edx, dword [esp + 0x30]
sub esp, 0x10
mov esi, dword [esp + 0xac]
mov eax, esp
push esi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x4c]
mov dword [eax + 8], ecx
mov ecx, edi
mov dword [eax + 0xc], edx
call fcn.0046e980
push 0x29
mov ecx, edi
call fcn.0046e3b0
push eax
push ebp
push esi
mov ecx, edi
call fcn.004bcda0
jmp 0x4b8052
push ebp
mov ecx, edi
call fcn.004745e0
test eax, eax
je 0x4b79cc
mov esi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
sub esi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jle 0x4b7864
mov eax, esi
jmp 0x4b786d
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xe4]
cmp eax, 2
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
je 0x4b78a2
test eax, eax
je 0x4b78a2
cmp eax, 3
je 0x4b78a2
cmp eax, 1
jne 0x4b7913
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050e339
test eax, eax
je 0x4b7913
mov eax, dword [eax + 0x1c]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x44]
push ecx
mov ecx, ebp
call fcn.0051593d
mov esi, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push 0x10
sub esi, eax
call ebx
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jle 0x4b78ec
mov eax, esi
jmp 0x4b78f5
push 0x10
call ebx
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], esi
mov ebx, dword [esp + 0x94]
lea edx, [esp + 0x24]
push edx
lea eax, [edi + 0x438]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
push ebx
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
cmp dword [ebp + 0xe4], 4
jne 0x4b8052
push 0x3d
mov ecx, edi
call fcn.0046e3b0
mov esi, eax
lea edx, [esp + 0x24]
push esi
push esi
push edx
mov ecx, ebx
call fcn.00522131
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push 0xffffffffffffffff
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push esi
lea ecx, [esp + 0x28]
push esi
push ecx
mov ecx, ebx
call fcn.00522131
mov edx, dword [ebx + 4]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
push esi
push 2
push 2
push edx
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 4]
push esi
add eax, 0xfffffffe
push 2
push eax
push ecx
call edi
mov edx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
add edx, 0xfffffffe
push esi
push edx
push 2
push eax
call edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 4]
add ecx, 0xfffffffe
push esi
add edx, 0xfffffffe
push ecx
push edx
push eax
call edi
jmp 0x4b8052
mov eax, dword [ebp + 0xe4]
test eax, eax
je 0x4b7e47
cmp eax, 1
je 0x4b7e47
cmp eax, 2
je 0x4b7c62
cmp eax, 3
je 0x4b7c62
cmp eax, 4
jne 0x4b7c4d
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x114]
test eax, eax
je 0x4b7c4d
push 0x1e
mov ecx, edi
call fcn.0046e3b0
mov esi, dword [esp + 0x94]
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.005220bb
push 0x3d
mov ecx, edi
call fcn.0046e3b0
mov ebx, eax
lea ecx, [esp + 0x24]
push ebx
push ebx
push ecx
mov ecx, esi
call fcn.00522131
push 0xffffffffffffffff
lea edx, [esp + 0x28]
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_InflateRect]
push ebx
lea eax, [esp + 0x28]
push ebx
push eax
mov ecx, esi
call fcn.00522131
lea ecx, [edi + 0x90]
push ecx
push esi
lea ecx, [esp + 0x6c]
call fcn.004be9f0
mov eax, dword [esi + 8]
lea edx, [esp + 0x14]
push edx
push 1
push 0x579d7c
push eax
mov dword [esp + 0x9c], 0
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x18]
cmp ecx, 0xf
jge 0x4b7aa4
mov ecx, 0xf
mov edx, dword [esp + 0x30]
lea eax, [edx - 2]
mov edx, dword [esp + 0x2c]
add edx, 0xfffffffe
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x28]
lea ecx, [ecx + edx + 2]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x10]
add edx, 2
mov dword [esp + 0x3c], ecx
mov ecx, ebp
mov dword [esp + 0x34], edx
mov dword [esp + 0x10], 0
call fcn.0047d940
test eax, eax
jle 0x4b7bcd
mov edx, dword [esp + 0x10]
mov ecx, ebp
push edx
call fcn.0047d950
mov ecx, dword [eax + 0x90]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4b7bb3
mov edx, dword [eax]
push 0
mov ecx, eax
call dword [edx + 0x78]
test eax, eax
je 0x4b7bb3
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0xbc]
mov edx, dword [eax + 0xbc]
mov dword [esp + 0x44], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x48], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x48]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jle 0x4b7bb3
add eax, 0xac
push 0
mov ecx, eax
push 0
mov edx, dword [ecx]
mov dword [esp + 0x1c], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x68], eax
lea eax, [edi + 0x458]
mov edx, dword [ecx + 8]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x40]
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], edx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x60]
push ecx
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov edx, dword [esp + 0x60]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x10]
mov ecx, ebp
inc edx
mov dword [esp + 0x10], edx
call fcn.0047d940
cmp dword [esp + 0x10], eax
jl 0x4b7af0
push 0
add edi, 0x458
push 0
lea eax, [esp + 0x3c]
push edi
push eax
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.GDI32.dll_SetPixel]
push ebx
push 2
push 2
push ecx
call edi
mov edx, dword [esp + 0x2c]
push ebx
push 2
lea eax, [edx - 2]
push eax
mov eax, dword [esi + 4]
push eax
call edi
mov ecx, dword [esp + 0x30]
mov edx, dword [esi + 4]
push ebx
lea eax, [ecx - 2]
push eax
push 2
push edx
call edi
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esi + 4]
add eax, 0xfffffffe
add ecx, 0xfffffffe
push ebx
push eax
push ecx
push edx
call edi
lea ecx, [esp + 0x64]
mov dword [esp + 0x8c], 0xffffffff
call fcn.004bea50
jmp 0x4b8052
mov eax, dword [esp + 0x94]
push ebp
push eax
mov ecx, edi
call fcn.004bceb0
jmp 0x4b8052
push 0xf
mov ecx, edi
call fcn.0046e3b0
mov esi, dword [esp + 0x94]
lea ecx, [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.005220bb
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050e339
mov ebx, eax
test ebx, ebx
je 0x4b7d7a
mov ecx, ebx
call fcn.005113de
test ah, 0x41
je 0x4b7cc5
mov eax, dword [edi + 0x450]
cmp eax, 0xffffffff
jne 0x4b7cb6
mov eax, dword [edi + 0x44c]
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.005220bb
jmp 0x4b7d31
push ebx
lea ecx, [esp + 0x18]
call fcn.004be660
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.0051593d
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push 0x10
sub ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x4b7cfa
mov eax, ebx
jmp 0x4b7d07
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [esp + 0x14]
lea ecx, [edi + 0x438]
add eax, edx
lea edx, [esp + 0x14]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x24]
push eax
push 1
push ecx
push edx
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 3]
push ecx
push edx
push eax
mov eax, dword [esp + 0x30]
push eax
mov ecx, esi
call fcn.00515745
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub esp, 0x10
mov ebx, esp
lea eax, [ecx + 1]
lea ecx, [edx + 3]
mov edx, dword [esp + 0x3c]
mov dword [ebx], eax
mov eax, dword [esp + 0x40]
dec edx
push esi
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], eax
call fcn.004bfa50
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x30]
push 1
push 1
mov dword [esp + 0x4c], eax
push 0
mov dword [esp + 0x5c], ecx
mov ecx, dword [ebp + 0xe0]
inc eax
push 1
push 0xffffffffffffffff
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], eax
call fcn.00479380
cmp eax, 0xffffffff
je 0x4b7df5
mov ebp, dword [ebp + 0xe0]
test eax, eax
jl 0x4b7dd0
cmp eax, dword [ebp + 0x28]
jge 0x4b7dd0
mov edx, dword [ebp + 0x24]
mov eax, dword [edx + eax*4]
jmp 0x4b7dd2
xor eax, eax
add eax, 0xac
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
inc eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x60], ecx
push 0
lea edx, [edi + 0x458]
push 1
lea eax, [esp + 0x4c]
push edx
push eax
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov eax, dword [edi + 0x500]
cmp eax, 0xffffffff
jne 0x4b7e25
mov edi, dword [edi + 0x4fc]
jmp 0x4b7e27
mov edi, eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub ecx, eax
sub ecx, 7
push edi
push ecx
add eax, 5
push 1
dec edx
push eax
push edx
jmp 0x4b8042
push 0xf
mov ecx, edi
call fcn.0046e3b0
mov esi, dword [esp + 0x94]
push eax
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.005220bb
mov ecx, dword [ebp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.0050e339
test eax, eax
je 0x4b7f3d
push eax
lea ecx, [esp + 0x48]
call fcn.004be660
lea edx, [esp + 0x44]
mov ecx, ebp
push edx
call fcn.0051593d
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x44]
push 0x10
sub ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x4b7eb1
mov eax, ebx
jmp 0x4b7ebe
push 0x10
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x24]
add eax, ecx
push edx
mov dword [esp + 0x50], eax
lea eax, [edi + 0x438]
push 1
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [eax + 3]
push ecx
push edx
push eax
mov ecx, esi
call fcn.00515745
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x30]
add eax, 3
inc ecx
dec ebx
sub esp, 0x10
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x90], ebx
mov ebx, esp
push esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ecx, edi
mov dword [ebx + 8], edx
mov edx, dword [esp + 0x94]
mov dword [ebx + 0xc], edx
call fcn.004bfa50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
push 1
push 1
mov dword [esp + 0x20], eax
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [ebp + 0xe0]
inc eax
push 1
push 0xffffffffffffffff
mov dword [esp + 0x34], edx
mov dword [esp + 0x2c], eax
call fcn.00479380
cmp eax, 0xffffffff
je 0x4b7fb6
mov ebp, dword [ebp + 0xe0]
test eax, eax
jl 0x4b7f93
cmp eax, dword [ebp + 0x28]
jge 0x4b7f93
mov ecx, dword [ebp + 0x24]
mov eax, dword [ecx + eax*4]
jmp 0x4b7f95
xor eax, eax
add eax, 0xac
mov edx, dword [eax]
mov dword [esp + 0x54], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x58], ecx
mov edx, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov eax, dword [eax + 0xc]
inc eax
mov dword [esp + 0x20], eax
push 0
lea eax, [edi + 0x458]
push 0
lea ecx, [esp + 0x1c]
push eax
push ecx
push esi
call fcn.004bf2f0
mov ecx, eax
call fcn.004bf8b0
mov eax, dword [edi + 0x470]
cmp eax, 0xffffffff
jne 0x4b7fe4
mov eax, dword [edi + 0x46c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x24]
sub edx, eax
sub edx, ecx
mov ecx, dword [esp + 0x34]
lea edx, [edx + ecx - 2]
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, esi
call fcn.005220e5
mov eax, dword [edi + 0x500]
cmp eax, 0xffffffff
jne 0x4b8025
mov edi, dword [edi + 0x4fc]
jmp 0x4b8027
mov edi, eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x30]
sub ecx, eax
push edi
sub ecx, 7
push 1
dec edx
push ecx
add eax, 5
push edx
push eax
mov ecx, esi
call fcn.005220e5
push 0
mov ecx, esi
call fcn.00515705
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x80
ret 8