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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x4254b8]
xor eax, esp
mov dword [esp + 0x78], eax
xor edx, edx
mov dword [esp + 8], ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [esp + 0x48], 0x3ea
mov edi, edx
mov dword [esp + 0x4c], 0x3e9
mov byte [esp + 0x13], dl
mov eax, edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], edx
push dword [esp + eax*4 + 0x48]
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x402406
lea eax, [esp + 0x64]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x402406
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x18]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x402406
lea eax, [esp + 0x74]
push eax
push 0
push 0x1605
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402406
mov eax, dword [esp + 0x6c]
xor ecx, ecx
sub eax, dword [esp + 0x64]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x1601
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402406
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [esp + 0x80]
add eax, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0x18], edx
cmp ebx, edx
mov dword [esp + 0x1c], ecx
lea ebx, [esp + 0x18]
jl 0x402326
lea ebx, [esp + 0x20]
mov ebx, dword [ebx]
cmp edi, ecx
mov dword [esp + 0x20], ebx
lea edi, [esp + 0x1c]
jl 0x402338
lea edi, [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edi, dword [edi]
mov dword [esp + 0x24], edi
cmp ebx, ecx
jle 0x40234b
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x54], esi
call fcn.004032ab
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esp + 0x28], eax
cmp eax, 2
jb 0x402247
mov al, byte [esp + 0x13]
test al, al
je 0x402406
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
sub eax, esi
push 0x14
pop ecx
cdq
idiv ecx
and dword [esp + 0x14], 0
push eax
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ecx, eax
test ecx, ecx
je 0x40240a
cmp esi, dword [esp + 0x30]
je 0x4023fd
lea edi, [esi + 0x10]
mov edx, dword [esp + 0x14]
mov eax, ebx
sub eax, dword [edi - 4]
push 0x14
push dword [edi]
add edx, eax
mov eax, dword [edi - 0xc]
push ebx
push dword [edi - 8]
sub eax, edx
mov dword [esp + 0x24], edx
push eax
push 0
push dword [edi - 0x10]
push ecx
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov ecx, eax
test ecx, ecx
je 0x40240a
add edi, 0x14
lea eax, [edi - 0x10]
cmp eax, dword [esp + 0x30]
jne 0x4023c2
push ecx
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
jmp 0x40240a
mov esi, dword [esp + 0x2c]
test esi, esi
je 0x402415
push esi
call fcn.0040b045
pop ecx
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a43b
mov esp, ebp
pop ebp
ret