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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d0
call fcn.0040f310
push esi
push edi
push 2
push dword [ebx + 0x10]
mov dword [esp + 0x34], 0x320
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
push 9
mov edx, eax
pop ecx
xor eax, eax
lea edi, [esp + 0x9c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x98]
push eax
push edx
mov dword [esp + 0xa0], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40de7f
mov eax, dword [esp + 0xa8]
sub eax, dword [esp + 0xa0]
sub eax, 0x32
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x44]
mov eax, dword [eax + 0x2e4]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [ebx + 0x10]
mov dword [esp + 0x28], eax
call esi
push 0x3e8
push dword [ebx + 0x10]
mov edi, eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edi
mov dword [esp + 0x18], eax
call esi
push 0xfffffffffffffff0
push dword [esp + 0x14]
mov dword [esp + 0x30], eax
call esi
push 0xffffffffffffffec
push edi
mov dword [esp + 0x2c], eax
call esi
push 0xffffffffffffffec
push dword [esp + 0x14]
mov dword [esp + 0x60], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x6c]
push eax
push edi
call esi
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x14]
call esi
mov edi, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x70]
push eax
push dword [ebx + 0x10]
xor esi, esi
push esi
call edi
push 2
lea eax, [esp + 0x40]
push eax
push dword [ebx + 0x10]
push esi
call edi
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x74]
sub edi, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x10], esi
lea esi, [ebx + 0x48]
mov dword [esp + 0x4c], edi
mov dword [esp + 0x38], eax
call fcn.004046a3
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetDC]
xor esi, esi
cmp eax, esi
mov dword [esp + 0x1c], eax
je 0x40dff0
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x2e0], esi
mov dword [esp + 0x14], esi
jle 0x40dfd3
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
call sub.msvcrt.dll_wcslen
pop ecx
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
push dword [esp + 0x28]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40dfbb
mov eax, dword [esp + 0x4c]
add eax, 0xa
cmp eax, esi
jle 0x40dfbb
mov esi, eax
inc dword [esp + 0x14]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x14]
add dword [esp + 0xc], 0x14
cmp ecx, dword [eax + 0x2e0]
jl 0x40df88
push dword [esp + 0x1c]
sub esi, edi
push dword [ebx + 0x10]
sub dword [esp + 0x3c], esi
add dword [esp + 0x44], esi
add edi, esi
mov dword [esp + 0x54], edi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0x44]
and dword [esp + 0xc], 0
cmp dword [eax + 0x2e0], 0
jle 0x40e194
mov ecx, dword [esp + 0x28]
mov eax, 0x10000000
or ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x24]
or ecx, eax
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
push dword [esp + 0xc]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
push dword [esp + 0x54]
mov eax, dword [esp + 0x74]
mov esi, dword [esp + 0x1c]
push edi
add eax, esi
push eax
push dword [esp + 0x78]
push dword [esp + 0x38]
push str.STATIC
push dword [esp + 0x70]
push ebx
call fcn.00401551
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x90]
imul eax, dword [esp + 0x38]
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x48]
add esi, eax
push esi
push dword [esp + 0x48]
push dword [esp + 0x34]
push str.EDIT
push dword [esp + 0x48]
push ebx
call fcn.00401551
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
push dword [eax]
lea eax, [esp + 0xd4]
push 0x411998
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
push dword [esp + 0x20]
call esi
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx]
lea edx, [esp + 0x2d0]
push edx
push dword [esp + 0x10]
call dword [eax]
push eax
push dword [esp + 0x24]
call esi
mov eax, dword [ebx + 0x90]
imul eax, dword [esp + 0x38]
add eax, dword [ebx + 0x94]
lea ecx, [ebx + 0x48]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
mov esi, dword [ecx + 0xc]
test esi, esi
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x94], eax
jl 0x40e162
cmp esi, 0xffffffff
mov eax, dword [ecx + 8]
jne 0x40e130
push dword [ecx]
call sub.msvcrt.dll_free
jmp 0x40e140
push eax
push 0xc
lea eax, [ecx + 4]
mov edx, esi
mov edi, ecx
call fcn.00405d7b
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0x54], eax
pop ecx
jge 0x40e14c
mov dword [ebx + 0x54], eax
mov edi, esi
imul edi, edi, 0xc
add edi, dword [ebx + 0x48]
lea esi, [esp + 0x8c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x2c]
add eax, 0xffffff9c
cmp dword [esp + 0x18], eax
jl 0x40e178
and dword [esp + 0x18], 0
inc dword [esp + 0x10]
inc dword [esp + 0xc]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0xc]
add dword [esp + 0x14], 0x14
cmp ecx, dword [eax + 0x2e0]
jl 0x40e029
mov eax, dword [esp + 0x10]
and dword [ebx + 0x98], 0
mov esi, ebx
mov dword [ebx + 0x9c], eax
call fcn.0040dd81
push 1
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x5c]
push ecx
push eax
mov dword [esp + 0x38], eax
call esi
push 2
lea eax, [esp + 0x60]
push eax
push dword [ebx + 0x10]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0xc0]
push eax
push dword [ebx + 0x10]
call edi
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0x10]
call esi
mov eax, dword [ebx + 0x9c]
test eax, eax
mov ecx, dword [esp + 0x2c]
jne 0x40e20d
mov ecx, dword [esp + 0x18]
add ecx, 0x46
mov edx, dword [esp + 0x84]
sub edx, dword [esp + 0x7c]
mov esi, 0x204
inc edx
test eax, eax
jne 0x40e243
push 0x206
push ecx
push edx
push eax
push eax
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 4
push dword [ebx + 0x10]
call fcn.00406218
pop ecx
pop ecx
jmp 0x40e290
xor eax, eax
cmp dword [esp + 0xa8], eax
je 0x40e27d
mov eax, dword [esp + 0xa0]
push esi
add eax, 0xa
push ecx
push edx
push eax
mov eax, dword [esp + 0xb4]
sub eax, dword [esp + 0xac]
sub eax, edx
cdq
sub eax, edx
sar eax, 1
add eax, dword [esp + 0xac]
push eax
push 0
jmp 0x40e287
push 0x206
push ecx
push edx
push eax
push eax
push eax
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 0x10]
call edi
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
sub ecx, eax
sub eax, dword [esp + 0x68]
push esi
sub eax, dword [esp + 0x84]
inc ecx
push ecx
mov ecx, dword [esp + 0x6c]
sub ecx, dword [esp + 0x64]
inc ecx
push ecx
mov ecx, dword [esp + 0x94]
lea eax, [eax + ecx - 6]
push eax
push dword [esp + 0x6c]
push 0
push dword [esp + 0x48]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov esp, ebp
pop ebp
ret