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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x425c04
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x4331f0]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x4331f0]
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 0x40d636
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 0x40d6b5
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.00412a54
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 0x40d87a
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 0x40d82f
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 0x40d75f
cmp dword [eax + 0x10], edx
jae 0x40d759
mov eax, dword [eax + 8]
jmp 0x40d749
mov ecx, eax
mov eax, dword [eax]
jmp 0x40d749
cmp ecx, esi
je 0x40d772
cmp edx, dword [ecx + 0x10]
jb 0x40d772
mov dword [esp + 0x34], ecx
lea eax, [esp + 0x34]
jmp 0x40d77a
mov dword [esp + 0x30], esi
lea eax, [esp + 0x30]
mov eax, dword [eax]
cmp eax, esi
je 0x40d794
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 0x40d7e2
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 [0x43546b]
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.0040ddd9
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x14]
push eax
push dword [esp + 0x20]
lea ecx, [esp + 0x70]
call fcn.00412a54
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 0x40d717
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 0x40d854
push dword [esp + 0x24]
call fcn.00412f3e
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.00412f2f
mov esp, ebp
pop ebp
ret 8