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

Disassembly:
sub esp, 0x14
push esi
mov esi, ecx
test esi, esi
je 0x46a958
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46a958
mov eax, dword [esi + 0x40]
push ebx
push ebp
push edi
test eax, eax
jne 0x46a649
call fcn.00469090
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x46a637
cmp eax, 1
jle 0x46a645
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x46a649
test eax, eax
jne 0x46a649
xor ebx, ebx
jmp 0x46a64f
mov ebx, dword [esi + 0x88]
mov ecx, esi
call fcn.00469090
mov ecx, dword [esi + 0x1dc]
test ecx, ecx
je 0x46a665
cmp eax, 1
jle 0x46a673
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x46a67a
test eax, eax
jne 0x46a67a
mov ebp, 1
jmp 0x46a67c
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 0x46a7cf
test eax, eax
mov eax, dword [esi + 0x1bc]
jne 0x46a6f7
cmp eax, 1
jle 0x46a6ed
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 0x46a70d
cmp eax, 1
jle 0x46a705
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 0x46a715
xor eax, eax
jmp 0x46a71f
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 0x46a767
xor eax, eax
test edx, edx
jle 0x46a75e
lea ebx, [edx + ebx + 1]
mov dword [edi], ebx
mov ebx, dword [esp + 0x1c]
sub ebx, edx
dec ebx
jmp 0x46a764
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 0x46a784
xor ecx, ecx
mov dword [edi], ecx
mov dword [esi + 0x70], ecx
mov edi, dword [esp + 0x10]
test edi, edi
je 0x46a7a5
push 0x1c
push 0
push 0
push 0
push 0
push 0
lea ecx, [esi + 0xf8]
call fcn.004a87d1
jmp 0x46a7f7
mov edi, dword [esi + 0x44]
test edi, edi
mov edi, dword [esi + 0x6c]
je 0x46a7b2
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.004a87d1
jmp 0x46a7f7
test eax, eax
jne 0x46a7dd
mov edx, dword [esi + 0x74]
sub edx, ebx
mov dword [esi + 0x6c], edx
jmp 0x46a7e5
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 0x46a83f
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 0x46a892
test eax, eax
jne 0x46a86e
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x1bc]
test eax, eax
jne 0x46a8db
mov ecx, dword [esi + 0x7c]
mov eax, dword [edi]
inc ecx
inc eax
mov dword [esi + 0x7c], ecx
mov dword [edi], eax
jmp 0x46a8db
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x74]
test eax, eax
mov dword [esi + 0x7c], ecx
jne 0x46a8db
mov ecx, dword [esi + 0x84]
mov eax, dword [edi]
dec ecx
inc eax
mov dword [esi + 0x84], ecx
mov dword [edi], eax
jmp 0x46a8db
test eax, eax
jne 0x46a8bd
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 0x46a8db
inc eax
mov dword [esi + 0x84], eax
jmp 0x46a8db
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 0x46a8db
dec eax
mov dword [esi + 0x7c], eax
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x46a928
mov eax, dword [esi + 0x5c]
xor ebx, ebx
test eax, eax
jle 0x46a928
mov eax, dword [esi + 0x4c]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x46a920
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.004a87d1
mov eax, dword [esi + 0x5c]
inc ebx
cmp ebx, eax
jl 0x46a8ee
mov ecx, esi
call fcn.0046a960
mov ecx, esi
call fcn.00469460
mov ecx, esi
call fcn.0046a490
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