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

Disassembly:
push 0xffffffffffffffff
push 0x618f1c
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x6e377c]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6e377c]
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 0x595b97
mov ecx, dword [eax + 8]
cmp dword [ecx + 0xc], 3
je 0x595b9e
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x595b87
xor al, al
jmp 0x595f97
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.0052ab80
add esp, 8
push esi
lea ecx, [esp + 0xa4]
call fcn.00557550
lea eax, [esp + 0x68]
push eax
mov ecx, esi
mov dword [esp + 0x1c4], 0
call fcn.0055a600
push 0x64
push eax
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1c8], 1
call fcn.00564050
push eax
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1c4], 2
call fcn.005607b0
lea ecx, [esp + 0x44]
mov byte [esp + 0x1c0], 1
call fcn.0055bd20
lea ecx, [esp + 0x68]
mov byte [esp + 0x1c0], 0
call fcn.0055bd20
push 0x20
call fcn.0054aca0
add esp, 4
push eax
lea ecx, [esp + 0xa4]
call fcn.0055ea10
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 0x595c88
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00557080
xor al, al
jmp 0x595f97
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.00554000
mov eax, dword [esi + 0x160]
mov dword [esp + 0x18], eax
test eax, eax
je 0x595f7e
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc], 3
jne 0x595f6b
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 0x595f6b
jmp 0x595d88
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 0x595f5c
cmp byte [esp + 0x1a9], 1
jne 0x595f5c
mov eax, dword [esi + 0x114]
lea ecx, [esp + 0x20]
push ecx
push ebp
push 0x41d
push eax
call edi
test eax, eax
je 0x595f5c
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.0054a830
test al, al
je 0x595f5c
mov al, byte [esi + 0xc8]
shr al, 4
and al, 1
mov byte [esp + 0x17], 0
jne 0x595e30
mov ecx, dword [esi + 0x2c]
test byte [ecx + 0xc8], 0x10
je 0x595f1c
test al, al
jne 0x595f1c
cmp dword [esp + 0x54], 6
jl 0x595f1c
call fcn.005837c0
mov ebp, eax
test ebp, ebp
je 0x595f18
mov eax, dword [ebp + 0x94]
call eax
test eax, eax
je 0x595f18
mov ecx, dword [ebp + 0x90]
call ecx
test eax, eax
je 0x595f18
call fcn.005837c0
test eax, eax
je 0x595e8f
mov ecx, dword [esi + 0x114]
mov edx, dword [eax]
push str.REBAR
push ecx
call edx
mov edi, eax
jmp 0x595e91
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 0x595efa
mov byte [esp + 0x17], 1
mov byte [esp + 0x1c0], 0
test edi, edi
je 0x595f11
call fcn.005837c0
mov edx, dword [eax + 4]
push edi
call edx
cmp byte [esp + 0x17], 0
jne 0x595f48
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 0x595f4c
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 0x595d82
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 0xc]
mov dword [esp + 0x18], eax
test eax, eax
jne 0x595cea
lea ecx, [esp + 0xa0]
mov dword [esp + 0x1c0], 0xffffffff
call fcn.00557080
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.005bae23
add esp, 0x1b0
ret 8