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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42d0
call fcn.0041a760
push esi
push edi
push dword [ebx + 8]
mov dword [esp + 0x34], 0x320
mov dword [esp + 0x10], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
test edi, edi
je 0x411808
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push edi
call esi
push 0x5a
push edi
call esi
push edi
push dword [ebx + 8]
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push 2
push dword [ebx + 8]
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 0x41186b
mov eax, dword [esp + 0xc]
imul eax, eax, 0x46
cdq
push 0x60
pop ecx
idiv ecx
mov ecx, eax
mov eax, dword [esp + 0xa8]
sub eax, ecx
sub eax, dword [esp + 0xa0]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xc]
shl eax, 2
push 0x60
cdq
pop ecx
idiv ecx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [ebx + 8]
mov dword [ebx + 0x90], eax
mov eax, dword [ebx + 0x3c]
mov eax, dword [eax + 0x308]
mov dword [esp + 0x28], eax
call esi
push 0x3e8
push dword [ebx + 8]
mov edi, eax
call esi
lea esi, [ebx + 0x84]
cmp dword [esi], 0
mov dword [esp + 0x10], eax
jne 0x4118c1
call fcn.0041673d
push eax
call fcn.0041676b
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push edi
call esi
push 0xfffffffffffffff0
push dword [esp + 0x14]
mov dword [esp + 0x30], eax
call esi
push 0xffffffffffffffec
push edi
mov dword [esp + 0x40], eax
call esi
push 0xffffffffffffffec
push dword [esp + 0x14]
mov dword [esp + 0x7c], eax
call esi
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x64]
push eax
push edi
call esi
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
call esi
mov edi, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x68]
push eax
push dword [ebx + 8]
xor esi, esi
push esi
call edi
push 2
lea eax, [esp + 0x48]
push eax
push dword [ebx + 8]
push esi
call edi
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
mov edi, dword [esp + 0x50]
sub edi, dword [esp + 0x48]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x44]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x70]
sub eax, dword [esp + 0x68]
mov dword [esp + 0x10], esi
lea esi, [ebx + 0x40]
mov dword [esp + 0x60], eax
mov dword [esp + 0x2c], edi
call fcn.00408a87
xor esi, esi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x411a44
push dword [ebx + 0x84]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
and dword [esp + 0x18], esi
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x3c]
cmp dword [eax + 0x304], esi
jle 0x411a1c
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0xc]
push dword [eax]
call sub.msvcrt.dll_wcslen
pop ecx
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
push dword [esp + 0x20]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x411a04
mov eax, dword [esp + 0xc]
imul eax, eax, 6
cdq
push 0x60
pop ecx
idiv ecx
add eax, dword [esp + 0x58]
cmp eax, edi
jle 0x4119ed
mov dword [esp + 0x2c], eax
mov edi, eax
mov eax, dword [esp + 0xc]
imul eax, eax, 0xa
cdq
push 0x60
pop ecx
idiv ecx
add eax, dword [esp + 0x54]
cmp eax, esi
jle 0x411a04
mov esi, eax
inc dword [esp + 0x18]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 0x18]
add dword [esp + 8], 0x14
cmp ecx, dword [eax + 0x304]
jl 0x4119ac
push dword [esp + 0x3c]
sub esi, dword [esp + 0x28]
push dword [esp + 0x18]
sub dword [esp + 0x3c], esi
add dword [esp + 0x4c], esi
add dword [esp + 0x2c], esi
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [esp + 0x14]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebx + 0x3c]
and dword [esp + 8], 0
cmp dword [eax + 0x304], 0
jle 0x411c18
mov ecx, dword [esp + 0x28]
mov eax, 0x10000000
or ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x38]
or ecx, eax
mov eax, dword [esp + 0xc]
imul eax, eax, 0x64
mov dword [esp + 0x38], ecx
cdq
push 0x60
pop ecx
idiv ecx
mov ecx, dword [esp + 0x30]
sub ecx, eax
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], eax
push dword [esp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x20]
push dword [esp + 0x60]
mov eax, dword [esp + 0x6c]
push dword [esp + 0x28]
mov esi, dword [esp + 0x24]
add eax, esi
push eax
push dword [esp + 0x70]
push dword [esp + 0x38]
push str.STATIC
push dword [esp + 0x8c]
push ebx
call fcn.004017e9
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x8c]
imul eax, edi
push eax
push dword [esp + 0x38]
mov eax, dword [esp + 0x50]
add esi, eax
push esi
push dword [esp + 0x50]
push dword [esp + 0x48]
push str.EDIT
push dword [esp + 0x58]
push ebx
call fcn.004017e9
push 0
lea esi, [ebx + 0x84]
push dword [esi]
mov dword [esp + 0x1c], eax
push 0x30
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esi]
push 0x30
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x20]
push dword [eax]
lea eax, [esp + 0xd4]
push 0x41d660
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 + 0x1c]
call esi
mov ecx, dword [ebx + 0x38]
mov eax, dword [ecx]
lea edx, [esp + 0x2d0]
push edx
push dword [esp + 0xc]
call dword [eax]
push eax
push dword [esp + 0x18]
call esi
mov eax, dword [ebx + 0x8c]
imul eax, edi
add eax, dword [ebx + 0x90]
lea ecx, [ebx + 0x40]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
mov esi, dword [ecx + 0xc]
test esi, esi
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x5c], eax
jl 0x411be9
cmp esi, 0xffffffff
mov eax, dword [ecx + 8]
jne 0x411bba
push dword [ecx]
call sub.msvcrt.dll_free
jmp 0x411bca
push eax
push 0xc
lea eax, [ecx + 4]
mov edx, esi
mov edi, ecx
call fcn.0040701e
pop ecx
lea eax, [esi + 1]
cmp dword [ebx + 0x4c], eax
pop ecx
jge 0x411bd6
mov dword [ebx + 0x4c], eax
mov edi, esi
imul edi, edi, 0xc
add edi, dword [ebx + 0x40]
lea esi, [esp + 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x3c]
jl 0x411bfc
and dword [esp + 0x1c], 0
inc dword [esp + 0x10]
inc dword [esp + 8]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esp + 8]
add dword [esp + 0x20], 0x14
cmp ecx, dword [eax + 0x304]
jl 0x411a94
mov eax, dword [esp + 0x10]
and dword [ebx + 0x94], 0
mov esi, ebx
mov dword [ebx + 0x98], eax
call fcn.0041172a
push 1
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x78]
push ecx
push eax
mov dword [esp + 0x48], eax
call esi
push 2
lea eax, [esp + 0x7c]
push eax
push dword [ebx + 8]
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 + 8]
call edi
lea eax, [esp + 0x88]
push eax
push dword [ebx + 8]
call esi
mov ecx, dword [ebx + 0x98]
test ecx, ecx
mov eax, dword [esp + 0x30]
jne 0x411c9e
mov eax, dword [esp + 0xc]
imul eax, eax, 0x50
cdq
push 0x60
pop esi
idiv esi
add eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x90]
sub edx, dword [esp + 0x88]
mov esi, 0x204
inc edx
test ecx, ecx
jne 0x411cd6
push 0x206
push eax
push edx
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebx + 8]
call fcn.00407483
pop ecx
jmp 0x411d22
xor ecx, ecx
cmp dword [esp + 0xa8], ecx
je 0x411d0f
push esi
push eax
mov eax, dword [esp + 0xa8]
add eax, 0xa
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 ecx
jmp 0x411d19
push 0x206
push eax
push edx
push ecx
push ecx
push ecx
push dword [ebx + 8]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [esp + 0x88]
push eax
push dword [ebx + 8]
call edi
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x84]
sub eax, ecx
inc eax
push esi
push eax
mov eax, dword [esp + 0x88]
sub eax, dword [esp + 0x80]
inc eax
push eax
mov eax, dword [esp + 0x18]
imul eax, eax, 5
push 0x60
pop esi
cdq
idiv esi
sub ecx, eax
sub ecx, dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
sub ecx, dword [esp + 0x98]
lea eax, [ecx + eax - 1]
push eax
push dword [esp + 0x88]
push 0
push dword [esp + 0x58]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
mov esp, ebp
pop ebp
ret