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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
push esi
mov esi, eax
mov ecx, dword [esi + 0x20]
push edi
lea eax, [esp + 0x28]
push eax
push ecx
call ebx
mov ecx, dword [esi + 0x78]
call fcn.004089e0
push 0x14
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0x484]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x34]
push eax
push ecx
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edx
call ebx
lea edx, [esp + 0x48]
push edx
mov ecx, esi
call fcn.0041ad45
lea eax, [esi + 0x464]
test eax, eax
je 0x4029ac
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x54]
sub ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
sub edx, dword [esp + 0x48]
push 4
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
add ecx, 7
push ecx
add edx, 0x28
push edx
push 0
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_DeferWindowPos]
call edi
mov ecx, dword [esi + 0xe4c]
lea eax, [esp + 0x38]
push eax
push ecx
call ebx
lea edx, [esp + 0x38]
push edx
mov ecx, esi
call fcn.0041ad45
lea eax, [esi + 0xe2c]
test eax, eax
jne 0x402a06
mov dword [esp + 0x18], eax
jmp 0x402a0d
mov eax, dword [eax + 0x20]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x44]
sub ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push 4
push ecx
mov ecx, dword [esp + 0x48]
mov edx, ecx
sub edx, eax
push edx
mov edx, dword [esp + 0x38]
sub eax, ecx
mov ecx, dword [esp + 0x3c]
add edx, 5
push edx
lea edx, [eax + ecx - 7]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push edx
push 0
push eax
push ecx
call edi
mov eax, dword [esi + 0xdd8]
lea edx, [esp + 0x58]
push edx
push eax
call ebx
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
call fcn.0041ad45
lea eax, [esi + 0xdb8]
test eax, eax
jne 0x402a6e
xor edx, edx
jmp 0x402a71
mov edx, dword [eax + 0x20]
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
push 4
push eax
mov eax, dword [esp + 0x60]
mov ebx, ecx
sub ebx, eax
sub eax, ecx
sub eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
add eax, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x38]
add ebx, 5
push ebx
lea eax, [eax + ecx - 7]
mov ecx, dword [esp + 0x2c]
push eax
push 0
push edx
push ecx
call edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edi, dword [esi + 0x45c]
dec edx
push edx
mov edx, dword [esp + 0x28]
dec eax
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
call fcn.004072e0
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
add edi, 0xf
add eax, 0xfffffff1
add ecx, 0xfffffff1
add esp, 0x14
add ebx, 0x2b
cmp edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
mov esi, edi
jg 0x402b86
push ecx
lea eax, [esi + 1]
push eax
push ebx
push esi
lea ecx, [esp + 0x78]
push ecx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [edi + 1]
cmp esi, eax
jg 0x402b3a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
push edx
push eax
push ebx
push esi
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x402b74
mov eax, dword [esp + 0x14]
lea edx, [eax - 1]
cmp esi, edx
jl 0x402b62
cmp esi, eax
jg 0x402b62
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebx
push esi
lea edx, [esp + 0x78]
push edx
call dword [sym.imp.USER32.dll_SetRect]
jmp 0x402b74
mov ecx, dword [ebp + 8]
push 0xffffff
lea eax, [esp + 0x6c]
push eax
call fcn.00421e36
mov esi, dword [esp + 0x18]
cmp esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
jle 0x402b04
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_SetRect]
lea edx, [ecx + 1]
push edx
push eax
dec ecx
push ecx
push edi
lea eax, [esp + 0x78]
push eax
call esi
mov edx, dword [esp + 0x14]
lea ecx, [ebx + 2]
push ecx
push edx
push ebx
push edi
lea eax, [esp + 0x78]
push eax
call esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4