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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x427542
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4351f0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4351f0]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
movzx ebx, ax
mov eax, dword [edi]
mov dword [esp + 0x1c], ebx
call dword [eax + 0x24]
test esi, esi
je 0x40eac9
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
push 0x14
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
push eax
push dword [esi + 4]
push dword [esi]
jmp 0x40eb48
lea eax, [esp + 0x78]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea esi, [edi + 0x18]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x68]
push 0x60
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00414061
mov ebx, dword [esp + 0x74]
mov eax, ebx
sub eax, dword [esp + 0x84]
sub eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x7c]
add eax, edi
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
cdq
sub eax, edx
sar eax, 1
sub edi, eax
mov eax, esi
sub eax, dword [esp + 0x80]
sub eax, dword [esp + 0x68]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, ecx
sub eax, dword [esp + 0x68]
add esi, eax
mov eax, edi
sub eax, dword [esp + 0x6c]
add ebx, eax
push 0x14
sub ebx, edi
sub esi, ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x20]
push ecx
xor esi, esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x24]
mov dword [esp + 0x98], esi
push eax
push 0x40ed0d
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EnumChildWindows]
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov ebx, dword [esp + 0x24]
sub eax, ebx
add eax, 3
mov dword [esp + 0x20], esi
shr eax, 2
cmp ebx, dword [esp + 0x28]
cmova eax, ecx
mov dword [esp + 0x38], eax
test eax, eax
je 0x40ecc2
lea eax, [edi + 0x28]
mov dword [esp + 0x18], eax
mov eax, dword [ebx]
lea ecx, [esp + 0x68]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [esp + 0x6c]
push eax
push dword [edi + 4]
push esi
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov esi, dword [edi]
mov ecx, esi
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x40ebf2
cmp dword [eax + 0x10], edx
jae 0x40ebec
mov eax, dword [eax + 8]
jmp 0x40ebdc
mov ecx, eax
mov eax, dword [eax]
jmp 0x40ebdc
cmp ecx, esi
je 0x40ec05
cmp edx, dword [ecx + 0x10]
jb 0x40ec05
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x34]
jmp 0x40ec0d
mov dword [esp + 0x30], esi
lea eax, [esp + 0x30]
mov eax, dword [eax]
cmp eax, esi
je 0x40ec27
lea esi, [eax + 0x14]
lea edi, [esp + 0x68]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x24]
mov edi, dword [esp + 0x10]
jmp 0x40ec75
mov eax, dword [esp + 0x10]
lea esi, [esp + 0x68]
lea edi, [esp + 0x3c]
mov dword [esp + 0x50], edx
movsd dword es:[edi], dword [esi]
push 5
mov eax, dword [eax + 0x14]
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 0x4c], eax
lea esi, [esp + 0x3c]
movzx eax, byte [0x43746b]
lea edi, [esp + 0x54]
rep movsd dword es:[edi], dword [esi]
push eax
lea eax, [esp + 0x54]
push eax
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x84]
push eax
call fcn.0040f31d
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x70]
call fcn.00414061
mov eax, dword [esp + 0x74]
xor esi, esi
sub eax, dword [esp + 0x6c]
push 0x14
push eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
push eax
push dword [esp + 0x78]
push dword [esp + 0x78]
push esi
push dword [esp + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esp + 0x20]
add ebx, 4
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x38]
jne 0x40ebaa
push 7
push esi
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_RedrawWindow]
cmp dword [esp + 0x24], 0
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x14], eax
je 0x40ece7
push dword [esp + 0x24]
call fcn.00414bb4
pop ecx
xor eax, eax
inc eax
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0041453f
mov esp, ebp
pop ebp
ret 8