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

Disassembly:
push 0xffffffffffffffff
push 0x6a0ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x73d6e0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x73d6e0]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x98]
test edi, edi
je 0x51a591
cmp dword [esi + 0xe0], 0
je 0x51a591
push edi
call fcn.0051a5c0
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.00519430
mov ebx, dword [sym.imp.USER32.dll_CopyRect]
push eax
lea eax, [esp + 0x78]
push eax
call ebx
lea eax, [esp + 0x74]
mov dword [esp + 0x40], 0
push eax
push edi
lea ecx, [esp + 0x48]
call fcn.004e47a0
mov dword [esp + 0x90], 0
mov ecx, dword [esi + 0xe0]
call fcn.00531980
push eax
lea eax, [esp + 0x68]
push eax
call ebx
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x51a1e4
mov eax, dword [esi + 0xec]
cmp eax, 0xffffffff
je 0x51a1e4
push 0xff
push eax
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.004e5170
mov ecx, dword [esi + 0xe0]
call fcn.00531970
push 1
mov ebx, eax
lea ebp, [esi + 0x10]
push 0
mov ecx, ebp
mov dword [esp + 0x2c], ebx
call fcn.004db290
cmp dword [ebx + 0x10], 0
jne 0x51a28f
mov ecx, esi
call fcn.004dc3f0
test al, al
jne 0x51a28f
mov eax, dword [esi + 0x158]
cmp dword [eax + 0x28], 0
je 0x51a28f
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
test al, al
je 0x51a28f
mov al, byte [esi + 0xd8]
test al, al
jne 0x51a28f
cmp dword [esi + 0xc0], 0xffffffff
je 0x51a50a
lea eax, [esp + 0x28]
mov ecx, ebp
push eax
call fcn.004da8c0
mov byte [esp + 0x90], 1
mov ecx, edi
push dword [esi + 0xc0]
push eax
lea eax, [esp + 0x7c]
push eax
mov eax, dword [esi + 0x158]
add eax, 0x18
push eax
call fcn.004e50d0
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x28]
call fcn.004f8a40
jmp 0x51a50a
push ebp
lea ecx, [esi + 0xe8]
call fcn.004dab00
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
test al, al
je 0x51a2ad
mov eax, dword [esi + 0x24]
jmp 0x51a2b0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0xe0]
mov dword [esp + 0x18], eax
call fcn.00404970
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov eax, dword [eax + 4]
mov dword [esp + 0x48], eax
mov byte [esp + 0x90], 2
mov ecx, edi
call fcn.004e4b80
mov ebx, eax
mov dword [esp + 0x20], ebx
mov byte [esp + 0x90], 3
lea eax, [esp + 0x74]
mov edx, dword [ebx]
mov ecx, ebx
push eax
call dword [edx + 4]
mov ecx, edi
call fcn.004e4b80
mov dword [esp + 0x1c], eax
mov byte [esp + 0x90], 4
lea ecx, [esp + 0x64]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 4]
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.00519390
push eax
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov dword [esp + 0x14], 0
mov byte [esp + 0x90], 5
mov ecx, ebx
mov eax, dword [ebx]
push 3
push dword [esp + 0x20]
call dword [eax + 0x1c]
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x51a3c7
push ecx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
call fcn.004e4780
mov byte [esp + 0x90], 6
lea eax, [esp + 0x28]
push eax
mov ecx, ebp
call fcn.004da8c0
mov byte [esp + 0x90], 7
movzx ecx, byte [esi + 0xe5]
push ecx
push 0
push dword [esp + 0x20]
mov ecx, edi
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x38]
call fcn.004e5100
mov byte [esp + 0x90], 6
lea ecx, [esp + 0x28]
call fcn.004f8a40
mov byte [esp + 0x90], 5
lea ecx, [esp + 0x3c]
call fcn.004e49b0
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x90], 4
test ecx, ecx
je 0x51a3d9
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x51a4d7
mov dword [esp + 0x18], eax
mov byte [esp + 0x90], 8
mov ecx, ebx
mov eax, dword [ebx]
push 0
push dword [esp + 0x20]
call dword [eax + 0x1c]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x51a4bf
push ebx
push edi
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], 0
call fcn.004e4780
mov byte [esp + 0x90], 9
mov eax, dword [esi + 0xec]
cmp eax, 0xffffffff
je 0x51a44b
push 0xff
push eax
lea eax, [esp + 0x6c]
mov ecx, edi
push eax
call fcn.004e5170
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x40]
call eax
test al, al
je 0x51a460
mov eax, dword [esi + 0xfc]
jmp 0x51a466
mov eax, dword [esi + 0x108]
mov dword [esp + 0x14], eax
mov ecx, ebp
lea eax, [esp + 0x28]
push eax
call fcn.004da8c0
mov byte [esp + 0x90], 0xa
movzx ecx, byte [esi + 0xe5]
push ecx
push 0
push dword [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x64]
push eax
push dword [esp + 0x38]
call fcn.004e5100
mov byte [esp + 0x90], 9
lea ecx, [esp + 0x28]
call fcn.004f8a40
mov byte [esp + 0x90], 8
lea ecx, [esp + 0x3c]
call fcn.004e49b0
mov byte [esp + 0x90], 4
test ebx, ebx
je 0x51a4d3
mov eax, dword [ebx]
mov ecx, ebx
push 1
call dword [eax]
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x90], 3
mov ecx, dword [esp + 0x1c]
push 1
mov eax, dword [ecx]
call dword [eax]
mov byte [esp + 0x90], 2
mov ecx, ebx
mov eax, dword [ebx]
push 1
call dword [eax]
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x44]
call fcn.004035f0
mov ecx, esi
call fcn.004dc3f0
test al, al
je 0x51a57d
cmp byte [esi + 0x154], 0
je 0x51a57d
lea eax, [esp + 0x54]
mov ecx, esi
push eax
call fcn.00519430
mov ecx, dword [esi + 0x14c]
mov eax, dword [esp + 0x5c]
mov ebx, dword [esi + 0x150]
cmp ecx, eax
jl 0x51a546
mov ecx, eax
sub ecx, dword [esi + 0xd4]
mov eax, dword [esi + 0xd4]
mov edx, dword [esi + 0xd0]
add eax, ecx
push 0xff
push dword [esi + 0xc4]
mov dword [esp + 0x54], eax
add edx, ebx
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], ecx
push eax
mov ecx, edi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x5c], edx
call fcn.004e5170
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x40]
call fcn.004e49c0
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.005472b9
add esp, 0x80
ret 4