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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5f4286
push eax
mov dword fs:[0], esp
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0xac]
call fcn.0045fb90
test eax, eax
je 0x51d571
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x5c]
push eax
add ecx, 0x2b8
call fcn.004f4880
mov ebx, eax
test ebx, ebx
je 0x51d571
mov eax, dword [edi + 0x78]
mov esi, 1
cmp eax, esi
jne 0x51d209
push 0x54
call fcn.005bd3d9
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0xa4], 0
je 0x51d1b9
mov ecx, dword [edi + 0x5c]
push ecx
mov ecx, eax
call fcn.004f0690
mov esi, eax
jmp 0x51d1bb
xor esi, esi
mov ebp, dword [edi + 0x4c]
lea ecx, [esi + 0xc]
mov dword [esp + 0xa4], 0xffffffff
lea edx, [ebp + 0xc]
push edx
call fcn.005bc55a
lea eax, [ebp + 0x10]
lea ecx, [esi + 0x10]
push eax
call fcn.005bc55a
mov ecx, dword [ebp + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0x4c]
add edx, 0x14
lea ecx, [esi + 0x14]
push edx
call fcn.004f40d0
mov ecx, dword [esp + 0xac]
push ebx
push esi
call fcn.004635e0
jmp 0x51d571
lea ecx, [esp + 0x74]
call fcn.004918b0
lea ecx, [esp + 0x60]
mov dword [esp + 0xa4], esi
call fcn.004918b0
lea eax, [esp + 0x60]
lea ecx, [esp + 0x74]
push eax
push ecx
mov ecx, edi
mov byte [esp + 0xac], 2
call fcn.0051c0a0
mov eax, dword [esp + 0x84]
mov ebp, eax
shr ebp, 2
test ebp, ebp
jg 0x51d25d
mov byte [esp + 0xa4], 1
mov esi, 0x5f7940
jmp 0x51d54c
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
mov ebx, SysReAllocString
neg esi
sbb esi, esi
mov dword [esp + 0x20], ebx
and esi, ecx
neg eax
sbb eax, eax
and eax, edx
mov dword [esp + 0x18], eax
xor eax, eax
cmp ebp, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
jle 0x51d30e
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [edi + 0x90]
lea edx, [esp + 0x30]
push edx
call fcn.005c50bd
mov eax, dword [esp + 0x30]
cmp eax, ebx
jge 0x51d2c8
mov dword [esp + 0x1c], eax
mov ebx, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jle 0x51d2d8
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jge 0x51d2e8
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp eax, ecx
jle 0x51d2f8
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jne 0x51d298
mov ecx, dword [0x6755b8]
mov edx, dword [esp + 0x20]
mov eax, dword [0x6755b4]
sub edx, ecx
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0xac]
sub ebx, eax
cmp dword [edx + 0x20c], 0
mov dword [esp + 0x1c], ebx
jle 0x51d349
sub ebx, eax
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], eax
mov ebx, dword [edi + 0x5c]
lea ecx, [esp + 0x48]
call fcn.004918b0
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0x5f7b68
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 3
call fcn.004918b0
test ebp, ebp
mov byte [esp + 0xa4], 4
jle 0x51d4dd
mov eax, dword [esp + 0x18]
mov ebx, esi
sub eax, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x18], eax
jmp 0x51d3a3
mov eax, dword [esp + 0x18]
mov ebp, dword [eax + ebx]
mov ecx, dword [edi + 0x4c]
lea eax, [esp + 0x2c]
push 0
push eax
push ebp
add ecx, 0x14
call fcn.004f4200
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
push ecx
push eax
push ebp
lea ecx, [esp + 0x4c]
call fcn.004f45f0
push 0
push esi
lea ecx, [esp + 0x48]
call fcn.004f4110
mov esi, eax
add esi, 0x18
push esi
call fcn.00492830
add esi, eax
push esi
call fcn.00492830
add esp, 8
add esi, eax
mov eax, dword [ebx]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x90]
call fcn.005c50bd
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
sub edx, eax
mov dword [esi + 4], edx
mov eax, dword [esp + 0x34]
sub eax, ecx
lea ecx, [esp + 0x88]
mov dword [esi + 8], eax
xor eax, eax
push ecx
mov dword [esi + 0x18], eax
push ebp
mov ecx, edi
mov dword [esp + 0xa0], eax
call fcn.0051d0b0
mov eax, dword [esp + 0x98]
mov esi, dword [esp + 0x90]
mov ecx, eax
shr ecx, 2
neg eax
sbb eax, eax
and eax, esi
test ecx, ecx
jle 0x51d4cb
mov ebp, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp]
mov ecx, dword [edi + 0x4c]
lea edx, [esp + 0x2c]
push 0
push edx
push eax
add ecx, 0x14
call fcn.004f4200
mov ecx, dword [esp + 0x2c]
mov edx, dword [ebp]
mov esi, dword [esp + 0x44]
push ecx
push eax
push edx
lea ecx, [esp + 0x4c]
call fcn.004f45f0
push 0
push esi
lea ecx, [esp + 0x48]
call fcn.004f4110
lea esi, [eax + 0x18]
push esi
call fcn.00492830
add esi, eax
push esi
call fcn.00492830
add esi, eax
mov eax, dword [esp + 0x1c]
add esp, 8
add ebp, 4
dec eax
mov dword [esi], 0
mov dword [esp + 0x14], eax
jne 0x51d468
mov eax, dword [esp + 0x10]
add ebx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x51d39f
mov ecx, dword [esp + 0xac]
lea eax, [esp + 0x40]
push eax
call fcn.00463560
mov esi, 0x5f7940
lea ecx, [esp + 0x88]
mov byte [esp + 0xa4], 3
mov dword [esp + 0x88], esi
call fcn.00491ab0
mov dword [esp + 0x40], 0x5f7a5c
lea ecx, [esp + 0x48]
mov byte [esp + 0xa4], 5
mov dword [esp + 0x44], 0
call fcn.00491ab0
lea ecx, [esp + 0x48]
mov byte [esp + 0xa4], 2
mov dword [esp + 0x48], esi
call fcn.00491ab0
mov byte [esp + 0xa4], 1
lea ecx, [esp + 0x60]
mov dword [esp + 0x60], esi
call fcn.00491ab0
lea ecx, [esp + 0x74]
mov dword [esp + 0xa4], 0xffffffff
mov dword [esp + 0x74], esi
call fcn.00491ab0
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 4