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

Disassembly:
push 0xffffffffffffffff
push 0x565d8c
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x5f168c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f168c]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x160]
test eax, eax
je 0x4e59c7
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 3
je 0x4e59ce
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4e59b7
xor al, al
jmp 0x4e5dc7
mov eax, dword [esi]
mov eax, dword [eax + 0x21c]
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x44]
push edx
mov ecx, esi
call eax
lea ecx, [esp + 0x9c]
push ecx
lea edx, [esp + 0x58]
push edx
call fcn.0047a8b0
add esp, 8
push esi
lea ecx, [esp + 0xa4]
call fcn.004a72d0
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov dword [esp + 0x1c4], 0
call fcn.004aa330
push 0x64
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1c8], 1
call fcn.004b3d70
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c4], 2
call fcn.004b04d0
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c0], 1
call fcn.00493df0
lea ecx, [esp + 0x68]
mov byte [esp + 0x1c0], 0
call fcn.00493df0
push 0x20
call fcn.0049a9e0
add esp, 4
push eax
lea ecx, [esp + 0xa4]
call fcn.004ae730
mov eax, dword [esi + 0x114]
push 0
lea ecx, [esp + 0x80]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetUpdateRect]
test eax, eax
jne 0x4e5ab8
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.004a6db0
xor al, al
jmp 0x4e5dc7
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0x7c]
mov ecx, dword [esp + 0x84]
sub eax, edx
push eax
sub ecx, edi
push ecx
push edx
mov edx, dword [esp + 0xac]
mov eax, dword [edx + 0x130]
push edi
lea ecx, [esp + 0xb0]
call eax
mov ecx, dword [esp + 0x1cc]
mov edx, dword [esp + 0x1c8]
push ecx
push edx
push 0xf
mov ecx, esi
call fcn.004a3d30
mov eax, dword [esi + 0x160]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4e5dae
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc], 3
jne 0x4e5d9b
mov ebx, dword [eax + 0x18]
mov edx, dword [ebx]
mov edx, dword [edx + 0x210]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, ebx
call edx
mov eax, dword [ebx]
mov eax, dword [eax + 0x218]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x54]
push edx
mov ecx, ebx
call eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x64]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x114]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x64]
push 0x418
push eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa8], ecx
call edi
xor ebp, ebp
mov dword [esp + 0x44], eax
mov dword [esp + 0x1c], ebp
test eax, eax
jle 0x4e5d9b
jmp 0x4e5bb8
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x1a0]
push edx
push ebp
push 0x417
push eax
call edi
test eax, eax
je 0x4e5d8c
cmp byte [esp + 0x1a9], 1
jne 0x4e5d8c
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x20]
push ecx
push ebp
push 0x41d
push eax
call edi
test eax, eax
je 0x4e5d8c
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
sub eax, edx
sub ecx, edi
mov dword [esp + 0x34], edx
lea edx, [esp + 0x30]
mov dword [esp + 0x38], ecx
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], eax
call fcn.0049a570
test al, al
je 0x4e5d8c
mov al, byte [esi + 0xc8]
shr al, 4
and al, 1
mov byte [esp + 0x17], 0
jne 0x4e5c60
mov ecx, dword [esi + 0x2c]
test byte [ecx + 0xc8], 0x10
je 0x4e5d4c
test al, al
jne 0x4e5d4c
cmp dword [esp + 0x54], 6
jl 0x4e5d4c
call fcn.004d34a0
mov ebp, eax
test ebp, ebp
je 0x4e5d48
mov eax, dword [ebp + 0x94]
call eax
test eax, eax
je 0x4e5d48
mov ecx, dword [ebp + 0x90]
call ecx
test eax, eax
je 0x4e5d48
call fcn.004d34a0
test eax, eax
je 0x4e5cbf
mov ecx, dword [esi + 0x114]
mov edx, dword [eax]
push str.REBAR
push ecx
call edx
mov edi, eax
jmp 0x4e5cc1
xor edi, edi
mov dword [esp + 0x60], edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
lea ecx, [esp + 0x68]
push ecx
mov dword [esp + 0x78], eax
xor eax, eax
lea edx, [esp + 0x24]
push edx
push eax
push eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x198]
mov ecx, dword [ebp + 8]
push eax
push edi
mov byte [esp + 0x1d8], 3
call ecx
test eax, eax
jne 0x4e5d2a
mov byte [esp + 0x17], 1
mov byte [esp + 0x1c0], 0
test edi, edi
je 0x4e5d41
call fcn.004d34a0
mov edx, dword [eax + 4]
push edi
call edx
cmp byte [esp + 0x17], 0
jne 0x4e5d78
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
mov edx, dword [esp + 0xac]
push eax
mov eax, dword [edx + 0xf0]
lea ecx, [esp + 0xb0]
call eax
jmp 0x4e5d7c
mov ebp, dword [esp + 0x1c]
mov edx, dword [ebx]
mov eax, dword [edx + 0x118]
push 0
push 0
mov ecx, ebx
call eax
inc ebp
cmp ebp, dword [esp + 0x44]
mov dword [esp + 0x1c], ebp
jl 0x4e5bb2
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4e5b1a
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.004a6db0
mov al, 1
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0050a9d0
add esp, 0x1b0
ret 8