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

Disassembly:
push 0xffffffffffffffff
push 0x5b9d5a
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62ece4]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x74]
test eax, eax
je 0x510c8c
mov ebp, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x28], eax
jmp 0x510ca7
push edi
lea ecx, [esp + 0x58]
call fcn.004dbff0
mov ecx, dword [eax + 0xc]
sub ecx, dword [eax + 4]
mov edx, dword [eax + 8]
sub edx, dword [eax]
mov dword [esp + 0x28], ecx
mov ebp, edx
mov esi, dword [sym.imp.USER32.dll_SetRectEmpty]
lea eax, [edi + 0x24c]
push eax
mov dword [esp + 0x28], ebp
call esi
lea eax, [edi + 0x230]
push eax
call esi
mov ecx, edi
call fcn.00508d40
mov edx, dword [edi]
mov edx, dword [edx + 0x1b0]
mov ebx, eax
lea eax, [esp + 0x44]
push eax
mov ecx, edi
mov dword [esp + 0x1c], ebx
call edx
mov ecx, edi
call fcn.00508430
mov edx, dword [eax]
mov edx, dword [edx + 0x84]
push 0
push 0
push edi
push 0
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call edx
cmp dword [edi + 0x1bc], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], 0
je 0x510d5e
mov ecx, edi
call fcn.00508430
push 0
push 0
sub esp, 0x10
mov esi, eax
mov dword [esp + 0x8c], esp
mov eax, esp
push 0
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov edx, dword [esi]
mov edx, dword [edx + 0xc0]
push 0
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add dword [esp + 0x48], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
cmp dword [edi + 0x1e0], 0
je 0x510d77
mov edx, dword [edi + 0x1dc]
sub edx, dword [edi + 0x1d4]
add dword [esp + 0x50], edx
mov ecx, dword [edi + 0xfc]
push 0x23be
call fcn.0050e6b0
cmp dword [edi + 0x1b0], 0
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], 0
je 0x510e2b
mov ecx, edi
call fcn.00508430
mov edx, dword [eax]
mov edx, dword [edx + 0xb8]
push 0
push 0
push edi
push 0
push 1
push 0
lea ecx, [esp + 0x54]
push ecx
mov ecx, eax
call edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add dword [esp + 0x50], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
test esi, esi
jne 0x510e2f
push 0x174
call fcn.0047b2c8
add esp, 4
mov dword [esp + 0x74], eax
mov dword [esp + 0x6c], esi
test eax, eax
je 0x510dfc
mov ecx, eax
call fcn.00510020
jmp 0x510dfe
xor eax, eax
mov ecx, dword [edi + 0xfc]
push 1
push 0xffffffffffffffff
push 0x60584c
push 0x23be
push eax
mov dword [esp + 0x80], 0xffffffff
call fcn.0050fb10
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x510e2f
test esi, esi
je 0x510e3d
mov edx, dword [esi]
mov eax, dword [edx + 0x8c]
push 1
mov ecx, esi
call eax
cmp dword [esp + 0x78], 0
jne 0x5110cd
cmp dword [edi + 0x228], 1
jne 0x510e5b
mov dword [edi + 0x228], 0
cmp dword [edi + 0x228], 0
mov eax, dword [esp + 0x48]
mov ebx, eax
je 0x510e88
mov edx, dword [esp + 0x44]
lea ebx, [eax + 0x10]
push ebx
mov ecx, ebp
sub ecx, dword [esp + 0x50]
push ecx
push eax
push edx
lea eax, [edi + 0x24c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [edi + 0x228]
cmp esi, dword [esp + 0x18]
mov dword [esp + 0x78], 1
mov dword [esp + 0x74], esi
jge 0x510f85
jmp 0x510eaa
mov esi, dword [esp + 0x74]
push esi
mov ecx, edi
call fcn.00508d50
mov esi, eax
mov ecx, dword [esi + 0xd0]
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
and ecx, 0xfffffff7
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0
mov ecx, esi
call edx
test eax, eax
je 0x510f6e
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xc8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xcc]
sub eax, ecx
cmp dword [esi + 0x98], 0
mov dword [esp + 0x5c], edx
je 0x510f0c
add ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x50]
sub ecx, eax
sub ecx, ebx
add edx, 0x10
cmp ecx, edx
jge 0x510f32
cmp dword [esp + 0x78], 0
je 0x510f81
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
add eax, ebx
mov dword [esp + 0x20], eax
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov ecx, ebp
sub ecx, dword [esp + 0x5c]
mov ebp, dword [esi]
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x30]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 0x74]
mov ecx, esi
mov dword [esp + 0x88], 0
call eax
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x74]
inc eax
cmp eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
jl 0x510ea6
mov esi, dword [esp + 0x74]
mov ebx, dword [esp + 0x18]
cmp esi, ebx
jge 0x510fb7
lea ecx, [ecx]
push esi
mov ecx, edi
call fcn.00508d50
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
or ecx, 8
push ecx
mov ecx, eax
call edx
inc esi
cmp esi, ebx
jl 0x510f90
mov esi, dword [esp + 0x74]
mov dword [edi + 0x22c], esi
cmp esi, ebx
je 0x510fed
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov edx, eax
sub edx, ecx
push edx
mov edx, ebp
sub edx, dword [esp + 0x50]
sub eax, ecx
push edx
sub eax, 0x10
push eax
mov eax, dword [esp + 0x50]
push eax
lea eax, [edi + 0x230]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esp + 0x14]
cmp dword [edi + 0x1b0], 0
je 0x511043
mov eax, dword [esi]
mov edx, dword [eax + 0x8c]
push 0
mov ecx, esi
call edx
mov eax, dword [esp + 0x28]
sub eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
mov esi, dword [esi]
add ecx, eax
mov dword [esp + 0x60], ecx
sub esp, 0x10
mov ecx, esp
mov dword [ecx], ebx
mov edx, ebp
sub edx, dword [esp + 0x5c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x74]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 0xc], edx
mov ecx, dword [esp + 0x24]
call eax
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov ebx, dword [sym.imp.USER32.dll_SetRect]
mov esi, dword [esp + 0x28]
push eax
sub eax, dword [esp + 0x3c]
mov ecx, ebp
sub ecx, dword [esp + 0x50]
push ecx
push eax
push edx
lea eax, [edi + 0x1c0]
push eax
call ebx
cmp dword [edi + 0x1e0], 0
je 0x5110a0
mov edx, dword [edi + 0x1dc]
sub edx, dword [edi + 0x1d4]
mov ecx, dword [esp + 0x50]
sub ebp, dword [esp + 0x4c]
lea eax, [edi + 0x1d0]
sub edx, ecx
add edx, esi
push edx
push ebp
sub esi, ecx
mov ecx, dword [esp + 0x4c]
push esi
push ecx
push eax
call ebx
cmp dword [esp + 0x7c], 0
je 0x5110b7
mov edx, dword [edi]
mov eax, dword [edx + 0x1a4]
push 1
push 0
mov ecx, edi
call eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0xc
lea ecx, [ebx - 1]
cmp dword [edi + 0x22c], ecx
jne 0x5110de
mov dword [edi + 0x22c], ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x18]
sub eax, ecx
mov ebx, eax
mov dword [esp + 0x78], ebx
cmp dword [edi + 0x22c], edx
je 0x511128
mov edx, dword [esp + 0x28]
push eax
mov eax, ebp
sub eax, dword [esp + 0x50]
sub edx, ecx
push eax
mov eax, dword [esp + 0x4c]
sub edx, 0x10
push edx
push eax
lea eax, [edi + 0x230]
sub ebx, 0x10
push eax
mov dword [esp + 0x8c], ebx
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [edi + 0x22c]
sub eax, 1
mov dword [esp + 0x74], eax
js 0x5111f2
jmp 0x511144
mov eax, dword [esp + 0x74]
push eax
mov ecx, edi
call fcn.00508d50
mov esi, eax
mov eax, dword [esi + 0xd0]
mov edx, dword [esi]
mov edx, dword [edx + 0x8c]
and eax, 0xfffffff7
push eax
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x78]
push 0
mov ecx, esi
call edx
test eax, eax
je 0x5111df
mov eax, dword [esi + 0xc0]
mov ecx, dword [esi + 0xc4]
mov edx, dword [esi + 0xc8]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xcc]
sub eax, ecx
sub ebx, eax
cmp ebx, 0x10
mov dword [esp + 0x5c], edx
jl 0x5111ea
mov edx, dword [esp + 0x44]
sub esp, 0x10
mov eax, esp
mov ecx, ebp
sub ecx, dword [esp + 0x5c]
mov ebp, dword [esi]
mov dword [eax], edx
mov edx, dword [ebp + 0x74]
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0xc], ecx
mov ecx, esi
call edx
cmp dword [esi + 0x98], 0
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x78], ebx
je 0x5111df
sub ebx, dword [esp + 0x1c]
mov dword [esp + 0x78], ebx
sub dword [esp + 0x74], 1
jns 0x511140
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x74]
mov ebx, eax
test eax, eax
jl 0x51121f
push ebx
mov ecx, edi
call fcn.00508d50
mov ecx, dword [eax + 0xd0]
mov edx, dword [eax]
mov edx, dword [edx + 0x8c]
or ecx, 8
push ecx
mov ecx, eax
call edx
sub ebx, 1
jns 0x5111f8
mov eax, dword [esp + 0x74]
lea ecx, [eax + 1]
mov dword [edi + 0x228], ecx
cmp eax, 0xffffffff
je 0x510ff1
mov eax, dword [esp + 0x48]
lea edx, [eax + 0x10]
push edx
mov edx, dword [esp + 0x48]
mov ecx, ebp
sub ecx, dword [esp + 0x50]
push ecx
push eax
push edx
lea eax, [edi + 0x24c]
push eax
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x510ff1