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

Disassembly:
sub esp, 0x74
mov eax, dword [0x426234]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 0x3c], 0x3ea
xor ecx, ecx
mov dword [esp + 0x38], ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x48], 0x3e9
mov ebx, ecx
mov byte [esp + 0x13], cl
mov dword [esp + 0x1c], edi
mov eax, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ecx
push dword [esp + eax*4 + 0x44]
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x402878
lea eax, [esp + 0x60]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x402878
mov eax, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
push eax
push dword [ebp + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x402878
lea eax, [esp + 0x70]
push eax
push 0
push 0x1605
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402878
mov eax, dword [esp + 0x6c]
xor ecx, ecx
sub eax, dword [esp + 0x64]
mov ebp, dword [esp + 0x68]
sub ebp, dword [esp + 0x60]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x14]
push eax
push ecx
push 0x1601
push esi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x402878
mov eax, dword [esp + 0x78]
add eax, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add edx, eax
mov eax, dword [esp + 0x7c]
add eax, dword [esp + 0x74]
add ecx, eax
mov dword [esp + 0x14], edx
cmp edi, edx
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x14]
jl 0x4027ab
lea edi, [esp + 0x1c]
mov edi, dword [edi]
cmp ebx, ecx
mov dword [esp + 0x1c], edi
lea ebx, [esp + 0x18]
jl 0x4027bd
lea ebx, [esp + 0x20]
mov ebx, dword [ebx]
mov dword [esp + 0x20], ebx
cmp edi, ebp
jle 0x4027cc
mov byte [esp + 0x13], 1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x4c]
push eax
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], ebp
call fcn.00405e47
mov eax, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
inc eax
mov dword [esp + 0x24], eax
cmp eax, 2
jb 0x4026d7
mov al, byte [esp + 0x13]
test al, al
je 0x402878
mov eax, dword [esp + 0x2c]
xor ebx, ebx
mov esi, dword [esp + 0x28]
sub eax, esi
push 0x14
pop ebp
cdq
idiv ebp
push eax
call dword [sym.imp.USER32.dll_BeginDeferWindowPos]
mov ecx, eax
test ecx, ecx
je 0x402878
cmp esi, dword [esp + 0x2c]
je 0x402871
add esi, 0x10
push ebp
push dword [esi]
mov eax, edi
sub eax, dword [esi - 4]
push edi
push dword [esi - 8]
add ebx, eax
mov eax, dword [esi - 0xc]
sub eax, ebx
push eax
push 0
push dword [esi - 0x10]
push ecx
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov ecx, eax
test ecx, ecx
je 0x402878
add esi, ebp
lea eax, [esi - 0x10]
cmp eax, dword [esp + 0x2c]
jne 0x402840
push ecx
call dword [sym.imp.USER32.dll_EndDeferWindowPos]
lea ecx, [esp + 0x28]
call fcn.0040466f
mov ecx, dword [esp + 0x80]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ba4c
add esp, 0x74
ret