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

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
test esi, esi
je 0x51ec78
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x51ec78
mov eax, dword [esi + 0x40]
push ebx
push ebp
push edi
test eax, eax
jne 0x51e969
call fcn.0051d540
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x51e957
cmp eax, 1
jle 0x51e965
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x51e969
test eax, eax
jne 0x51e969
xor ebx, ebx
jmp 0x51e96f
mov ebx, dword [esi + 0x88]
mov ecx, esi
call fcn.0051d540
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x51e985
cmp eax, 1
jle 0x51e993
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x51e99a
test eax, eax
jne 0x51e99a
mov ebp, 1
jmp 0x51e99c
xor ebp, ebp
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], ebp
call dword [sym.imp.user32.dll_GetClientRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [esi + 0x68]
push 0
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov edx, dword [esi + 0x1bc]
neg edx
push edx
push edi
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esi + 0x3c]
test eax, eax
mov eax, dword [esi + 0x44]
je 0x51eaef
test eax, eax
mov eax, dword [esi + 0x1bc]
jne 0x51ea17
cmp eax, 1
jle 0x51ea0d
mov ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x74]
add eax, ecx
mov dword [esi + 0x74], eax
mov edx, dword [esi + 0x74]
sub edx, ebx
mov dword [esi + 0x6c], edx
jmp 0x51ea2d
cmp eax, 1
jle 0x51ea25
mov ecx, dword [esi + 0x6c]
dec eax
add ecx, eax
mov dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x6c]
add eax, ebx
mov dword [esi + 0x74], eax
test ebp, ebp
je 0x51ea35
xor eax, eax
jmp 0x51ea3f
push 0x15
call dword [sym.imp.user32.dll_GetSystemMetrics]
shl eax, 1
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 4]
mov ebx, dword [edi]
mov ebp, dword [esi + 0x70]
sub ecx, edx
lea edx, [eax + 1]
add ebx, edx
mov edx, dword [esi + 0x1bc]
sub ebp, edx
sub ecx, 2
mov dword [edi], ebx
cmp ebp, ebx
mov ebx, dword [esp + 0x14]
mov dword [esi + 0x70], ebp
jge 0x51ea87
xor eax, eax
test edx, edx
jle 0x51ea7e
lea ebx, [edx + ebx + 1]
mov dword [edi], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, edx
dec ebx
jmp 0x51ea84
mov dword [edi], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esi + 0x70], ebx
mov ebx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
sub ebx, ebp
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
add ebx, edx
cmp ebx, ebp
jle 0x51eaa4
xor ecx, ecx
mov dword [edi], ecx
mov dword [esi + 0x70], ecx
mov edi, dword [esp + 0x10]
test edi, edi
je 0x51eac5
push 0x1c
push 0
push 0
push 0
push 0
push 0
lea ecx, [esi + 0xf8]
call fcn.00596c4b
jmp 0x51eb17
mov edi, dword [esi + 0x44]
test edi, edi
mov edi, dword [esi + 0x6c]
je 0x51ead2
add edi, 2
push 0x1c
push ecx
push eax
mov eax, dword [esp + 0x20]
push edi
lea ecx, [edx + eax + 1]
push ecx
push 0
lea ecx, [esi + 0xf8]
call fcn.00596c4b
jmp 0x51eb17
test eax, eax
jne 0x51eafd
mov edx, dword [esi + 0x74]
sub edx, ebx
mov dword [esi + 0x6c], edx
jmp 0x51eb05
mov eax, dword [esi + 0x6c]
add eax, ebx
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x1bc]
mov eax, dword [esi + 0x70]
neg ecx
shl ecx, 1
add eax, ecx
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edi, [esi + 0x78]
push 2
mov edx, edi
mov dword [edx], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
call dword [sym.imp.user32.dll_GetSystemMetrics]
mov edx, dword [esi + 0x70]
mov ecx, dword [esi + 0x1bc]
sub edx, eax
test ecx, ecx
mov dword [esi + 0x64], edx
jle 0x51eb5f
or eax, 0xffffffff
sub eax, ecx
push eax
push eax
push edi
call dword [sym.imp.user32.dll_InflateRect]
mov eax, dword [esi + 0x3c]
test eax, eax
mov eax, dword [esi + 0x44]
je 0x51ebb2
test eax, eax
jne 0x51eb8e
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x1bc]
test eax, eax
jne 0x51ebfb
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi]
inc ecx
inc eax
mov dword [esi + 0x7c], ecx
mov dword [edi], eax
jmp 0x51ebfb
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x74]
test eax, eax
mov dword [esi + 0x7c], ecx
jne 0x51ebfb
mov ecx, dword [esi + 0x84]
mov eax, dword [edi]
dec ecx
inc eax
mov dword [esi + 0x84], ecx
mov dword [edi], eax
jmp 0x51ebfb
test eax, eax
jne 0x51ebdd
mov edx, dword [esi + 0x1bc]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x1b8]
shl edx, 1
sub eax, edx
inc eax
test ecx, ecx
mov dword [esi + 0x84], eax
je 0x51ebfb
inc eax
mov dword [esi + 0x84], eax
jmp 0x51ebfb
mov ecx, dword [esi + 0x1bc]
mov edx, dword [esi + 0x74]
lea eax, [edx + ecx*2 - 1]
mov ecx, dword [esi + 0x1b8]
test ecx, ecx
mov dword [esi + 0x7c], eax
je 0x51ebfb
dec eax
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x51ec48
mov eax, dword [esi + 0x5c]
xor ebx, ebx
test eax, eax
jle 0x51ec48
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x51ec40
mov ecx, dword [edi + 0xc]
mov ebp, dword [edi + 4]
mov edx, dword [edi + 8]
sub ecx, ebp
mov ebp, dword [edi]
push 0x14
sub edx, ebp
push ecx
mov ecx, dword [esi + 0x7c]
dec edx
push edx
mov edx, ebp
push ecx
mov ecx, dword [eax + 0x20]
push edx
push 0
call fcn.00596c4b
mov eax, dword [esi + 0x5c]
inc ebx
cmp ebx, eax
jl 0x51ec0e
mov ecx, esi
call fcn.0051ec80
mov ecx, esi
call fcn.0051d910
mov ecx, esi
call fcn.0051e7b0
mov eax, dword [esi + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x14
ret