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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x82c4
call fcn.0046e9b0
push ebx
push esi
push edi
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push 2
push eax
mov dword [esp + 0x34], 0x320
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_MonitorFromWindow]
xor ecx, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
lea ecx, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x78], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x450872
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
sub eax, 0x32
mov dword [esp + 0x2c], eax
mov edx, dword [ebx + 0x44]
mov ecx, dword [ebx + 0x10]
mov eax, dword [edx + 0x324]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ecx
mov dword [esp + 0x20], eax
call esi
mov edx, dword [ebx + 0x10]
push 0x3e8
push edx
mov edi, eax
call esi
push 0xfffffffffffffff0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x60]
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
call edi
lea ecx, [esp + 0x3c]
push ecx
push esi
call edi
mov eax, dword [ebx + 0x10]
mov esi, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea edx, [esp + 0x64]
push edx
push eax
push 0
call esi
mov edx, dword [ebx + 0x10]
push 2
lea ecx, [esp + 0x40]
push ecx
push edx
push 0
call esi
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x60]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
xor ecx, ecx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
xor edi, edi
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x48]
cmp eax, ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], ecx
je 0x450957
push eax
call sub.msvcrt.dll_free
add esp, 4
xor ecx, ecx
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x54], ecx
mov dword [ebx + 0x4c], ecx
mov eax, dword [ebx + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, eax
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x20], ecx
je 0x450a1d
mov edx, dword [ebx + 0x44]
cmp dword [edx + 0x320], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
jle 0x450a02
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
mov eax, edx
lea ecx, [eax + 2]
mov dword [esp + 0x24], ecx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4509a7
sub eax, dword [esp + 0x24]
lea ecx, [esp + 0x58]
push ecx
sar eax, 1
push eax
push edx
mov edx, dword [esp + 0x2c]
push edx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x4509df
mov eax, dword [esp + 0x58]
add eax, 0xa
cmp eax, dword [esp + 0x14]
jle 0x4509df
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x44]
add dword [esp + 0xc], 0x14
add eax, 1
cmp eax, dword [ecx + 0x320]
mov dword [esp + 0x1c], eax
jl 0x450998
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebx + 0x10]
sub eax, esi
sub dword [esp + 0x34], eax
add dword [esp + 0x3c], eax
push ecx
add esi, eax
push edx
mov dword [esp + 0x24], esi
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebx + 0x44]
cmp dword [eax + 0x320], edi
mov dword [esp + 0xc], edi
jle 0x450c45
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
or eax, 0x10000000
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
or eax, 0x10000000
add ecx, 0x10
mov dword [esp + 0x58], eax
mov dword [esp + 0x14], ecx
mov edx, dword [ebx]
mov eax, dword [esp + 0xc]
mov edx, dword [edx + 0x20]
push eax
mov ecx, ebx
call edx
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push 0
lea esi, [edi + eax]
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x1c]
push 0
push eax
mov eax, dword [esp + 0x54]
push 0
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x68]
push esi
push edx
push eax
push 0x46f57c
push str.STATIC
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [esp + 0x40]
mov esi, dword [ebx + 0x90]
mov ecx, dword [esp + 0x3c]
imul esi, dword [esp + 0x38]
mov dword [esp + 0x20], eax
lea eax, [edi + edx]
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edx, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x3c]
push 0
push edx
mov edx, dword [esp + 0x34]
push esi
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push 0x46f57c
push str.EDIT
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [edx]
push eax
push 0x4717c8
lea ecx, [esp + 0xd0]
push 0xff
push ecx
mov dword [esp + 0x34], esi
call sub.msvcrt.dll__snwprintf
mov eax, dword [esp + 0x30]
add esp, 0x10
lea edx, [esp + 0xc8]
push edx
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ecx]
lea eax, [esp + 0x2c8]
push eax
mov eax, dword [esp + 0x10]
mov edx, dword [edx]
push eax
call edx
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebx + 0x90]
imul eax, dword [esp + 0x38]
add eax, dword [ebx + 0x94]
mov esi, dword [ebx + 0x54]
add edi, eax
test esi, esi
jl 0x450c14
cmp esi, 0xffffffff
mov ecx, dword [ebx + 0x50]
jne 0x450b8e
mov ecx, dword [ebx + 0x48]
push ecx
jmp 0x450be4
mov eax, dword [ebx + 0x4c]
cmp esi, eax
mov dword [esp + 0x10], eax
jl 0x450bec
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x18], edx
add dword [ebx + 0x4c], ecx
mov eax, dword [ebx + 0x4c]
cmp esi, eax
jge 0x450ba0
lea eax, [eax + eax*2]
add eax, eax
add eax, eax
push eax
call sub.msvcrt.dll_malloc
mov ecx, dword [esp + 0x14]
add esp, 4
test ecx, ecx
mov dword [ebx + 0x48], eax
jle 0x450bec
test eax, eax
je 0x450bdf
mov edx, dword [esp + 0x18]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
push ecx
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x18]
push eax
call sub.msvcrt.dll_free
add esp, 4
lea eax, [esi + 1]
cmp dword [ebx + 0x54], eax
jge 0x450bf7
mov dword [ebx + 0x54], eax
mov edx, dword [ebx + 0x48]
lea ecx, [esi + esi*2]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [eax], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x2c]
add eax, 0xffffff9c
cmp edi, eax
jl 0x450c26
xor edi, edi
add dword [esp + 0x28], 1
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x44]
add dword [esp + 0x14], 0x14
add eax, 1
cmp eax, dword [edx + 0x320]
mov dword [esp + 0xc], eax
jl 0x450a55
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x9c], eax
call fcn.00450730
mov ecx, dword [ebx + 0x10]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x98]
mov esi, eax
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebx + 0x10]
push 2
lea eax, [esp + 0x9c]
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebx + 0x10]
lea edx, [esp + 0xb8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov edx, dword [ebx + 0x10]
lea ecx, [esp + 0xa8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebx + 0x9c]
test edx, edx
mov eax, dword [esp + 0x2c]
jne 0x450cc6
lea eax, [edi + 0x46]
mov ecx, dword [esp + 0xb0]
sub ecx, dword [esp + 0xa8]
add ecx, 1
test edx, edx
jne 0x450d01
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x206
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push edx
push edx
push eax
call edi
mov ecx, dword [ebx + 0x10]
push 4
push ecx
call fcn.00460a80
add esp, 8
jmp 0x450d52
cmp dword [esp + 0x80], 0
je 0x450d39
mov edi, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push 0x204
push eax
mov eax, dword [esp + 0x84]
sub eax, edi
push ecx
sub eax, ecx
add edx, 0xa
push edx
cdq
sub eax, edx
sar eax, 1
add eax, edi
push eax
mov eax, dword [ebx + 0x10]
push 0
push eax
jmp 0x450d4a
push 0x206
push eax
push ecx
mov ecx, dword [ebx + 0x10]
push 0
push 0
push 0
push ecx
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
call edi
mov eax, dword [ebx + 0x10]
lea edx, [esp + 0xa8]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp + 0xa0]
push 0x204
mov edx, ecx
sub edx, eax
add edx, 1
push edx
mov edx, dword [esp + 0xa0]
sub eax, ecx
sub eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xbc]
sub ebx, edx
add ebx, 1
push ebx
lea eax, [eax + ecx - 6]
push eax
push edx
push 0
push esi
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret