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

Disassembly:
push 0xffffffffffffffff
push 0x631922
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x70a308]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov esi, dword [esp + 0x8c]
mov eax, dword [esi + 0x20]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
xor ebx, ebx
push ebx
push ebx
push 0x1032
push eax
call ebp
test eax, eax
jbe 0x50acb7
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0x38]
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0x1027
push eax
call ebp
mov ecx, dword [esi + 0x20]
push ebx
push ebx
push 0x1027
mov edi, eax
push ecx
dec edi
call ebp
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x1028
push edx
mov ebx, eax
call ebp
push 0
push 0
lea ebx, [eax + ebx - 1]
mov eax, dword [esi + 0x20]
push 0x1004
push eax
mov dword [esp + 0x9c], ebx
call ebp
dec eax
cmp ebx, eax
jle 0x50abb2
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1004
push ecx
call ebp
dec eax
mov dword [esp + 0x8c], eax
mov edx, dword [esi + 0x20]
push 2
push edi
push 0x100c
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x50ac2d
mov ebx, dword [sym.imp.USER32.dll_UnionRect]
lea ecx, [ecx]
cmp edi, dword [esp + 0x8c]
jg 0x50ac2d
lea eax, [esp + 0x38]
push eax
push 0
push 0
push edi
mov ecx, esi
call fcn.005dbefb
lea ecx, [esp + 0x58]
push ecx
push 0
push 1
push edi
mov ecx, esi
call fcn.005dbefb
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x38], eax
jge 0x50ac09
mov dword [esp + 0x40], eax
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 2
push edi
push 0x100c
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x50abd0
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x6c]
call fcn.005d8ac8
mov dword [esp + 0x84], 0
lea ecx, [esp + 0x48]
call fcn.005d8442
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x18]
call fcn.00439e90
mov byte [esp + 0x84], 2
mov ecx, dword [esp + 0x6c]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x4c]
call fcn.005d8a46
test eax, eax
jne 0x50acbe
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x18]
call fcn.00439ef0
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x48]
call fcn.005d8aaf
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.005d8b1c
xor eax, eax
jmp 0x50aec6
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x6c]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x1c]
call fcn.005d8d02
test eax, eax
je 0x50ac81
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
push eax
push ecx
call fcn.005d8d91
mov edx, dword [esp + 0x34]
sub edx, dword [esp + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
push 0xff00
push edx
push eax
push 0
push 0
lea ecx, [esp + 0x5c]
call fcn.005de4be
mov ecx, dword [esi + 0x20]
push 0
push 0
push 0x1027
push ecx
call ebp
mov edx, dword [esi + 0x20]
push 2
dec eax
push eax
push 0x100c
push edx
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x50ade9
cmp edi, dword [esp + 0x8c]
jg 0x50ade9
lea eax, [esp + 0x20]
push eax
push edi
mov ecx, esi
call fcn.005dc3b8
mov ebx, eax
test ebx, ebx
je 0x50add0
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push edi
mov ecx, esi
call fcn.005dbefb
lea edx, [esp + 0x58]
push edx
push 0
push 1
push edi
mov ecx, esi
call fcn.005dbefb
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x58]
cmp ecx, eax
jge 0x50ad9b
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov edx, dword [ebx + 4]
push 0x10
push eax
mov eax, dword [esp + 0x54]
push ecx
push eax
push 0
push edx
call fcn.005d80b1
mov ecx, dword [eax + 0x78]
mov ecx, dword [ecx]
call fcn.004b8c00
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push 1
mov ecx, ebx
call eax
mov ecx, dword [esi + 0x20]
push 2
push edi
push 0x100c
push ecx
call ebp
mov edi, eax
cmp edi, 0xffffffff
jne 0x50ad49
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50adf4
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.005d8d91
push 8
call fcn.005cfa6c
add esp, 4
mov dword [esp + 0x8c], eax
mov byte [esp + 0x84], 3
test eax, eax
je 0x50ae27
mov ecx, eax
call fcn.005dbff8
mov esi, eax
jmp 0x50ae29
xor esi, esi
mov byte [esp + 0x84], 2
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub ecx, dword [esp + 0x28]
push 1
push 0
push 1
push eax
push ecx
mov ecx, esi
call fcn.005dc460
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push 0xff00
push edx
push eax
call fcn.005d80b1
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
call fcn.00439b80
lea ecx, [esp + 0x18]
call fcn.005d8d5a
mov eax, dword [esp + 0x90]
test eax, eax
je 0x50ae8e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov byte [esp + 0x84], 1
lea ecx, [esp + 0x18]
call fcn.00439ef0
mov byte [esp + 0x84], 0
lea ecx, [esp + 0x48]
call fcn.005d8aaf
mov dword [esp + 0x84], 0xffffffff
lea ecx, [esp + 0x68]
call fcn.005d8b1c
mov eax, esi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 8