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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x42a8
call fcn.0040c8b0
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x2c4]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
push 0x3e9
push dword [esi + 8]
mov dword [esp + 0x3c], eax
call ebx
push 0x3e8
push dword [esi + 8]
mov dword [esp + 0x18], eax
call ebx
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push dword [esp + 0x14]
mov dword [esp + 0x14], eax
call edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov dword [esp + 0x30], eax
call edi
push 0xffffffffffffffec
push dword [esp + 0x14]
mov dword [esp + 0x2c], eax
call edi
push 0xffffffffffffffec
push dword [esp + 0x10]
mov dword [esp + 0x74], eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x70]
push eax
push dword [esp + 0x14]
call edi
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x10]
call edi
push 2
lea eax, [esp + 0x74]
push eax
push dword [esi + 8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x4c]
push eax
push dword [esi + 8]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x70]
push dword [esi + 8]
and dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x54]
sub eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
sub eax, dword [esp + 0x78]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x20], eax
je 0x40ad08
mov ecx, dword [esi + 0x10]
xor eax, eax
and dword [esp + 0x30], eax
cmp dword [ecx + 0x2c0], eax
mov dword [esp + 0x18], eax
jle 0x40aceb
mov eax, dword [esp + 0x34]
add eax, 0x10
mov dword [esp + 8], eax
lea eax, [esp + 0x90]
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 + 0x2c]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
test eax, eax
je 0x40accf
mov eax, dword [esp + 0x90]
add eax, 0xa
cmp eax, dword [esp + 0x18]
jle 0x40accf
mov dword [esp + 0x18], eax
inc dword [esp + 0x30]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x30]
add dword [esp + 8], 0x14
cmp ecx, dword [eax + 0x2c0]
jl 0x40ac92
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
push dword [esp + 0x20]
sub dword [esp + 0x18], eax
push dword [esi + 8]
add dword [esp + 0x50], eax
add dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x10]
and dword [esp + 8], 0
cmp dword [eax + 0x2c0], 0
jle 0x40ae68
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 dword [esp + 0x24], ecx
push dword [esp + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
push dword [esp + 0x58]
mov eax, dword [esp + 0x78]
push dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
add ecx, eax
push ecx
push dword [esp + 0x7c]
push dword [esp + 0x38]
push str.STATIC
push dword [esp + 0x84]
push esi
call fcn.00401415
mov ecx, dword [esp + 8]
add ecx, 0xfffffffe
cmp ecx, 3
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
ja 0x40ad90
cmp dword [esi + 0x1450], 0
je 0x40ad90
and eax, 0xfffff7ff
mov ecx, dword [esi + 0x14]
imul ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x18]
mov ecx, dword [esp + 0x54]
add edx, ecx
push edx
push dword [esp + 0x54]
push eax
push str.EDIT
push dword [esp + 0x44]
push esi
call fcn.00401415
mov dword [esp + 0x18], eax
mov eax, dword [esp + 8]
add eax, 0xfffffffe
cmp eax, 3
ja 0x40ade9
cmp dword [esp + 8], 2
jne 0x40addd
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov dword [esi + ecx*4 + 0x14], eax
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x34]
imul eax, eax, 0x14
push dword [eax + ecx + 0x10]
lea eax, [esp + 0xac]
push 0x40e6dc
push 0xff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x10
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x2a8]
push edx
push dword [esp + 0xc]
call dword [eax]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x1c]
add eax, dword [esi + 0x18]
add dword [esp + 0xc], eax
inc dword [esp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 8]
cmp ecx, dword [eax + 0x2c0]
jl 0x40ad36
push 1
push dword [esi + 8]
call ebx
push 0x3f4
push dword [esi + 8]
mov dword [esp + 0x24], eax
call ebx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
call edi
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x3c]
push eax
push dword [esi + 8]
push 0
call ebx
lea eax, [esp + 0x80]
push eax
push dword [esp + 0x18]
call edi
push 2
lea eax, [esp + 0x84]
push eax
push dword [esi + 8]
push 0
call ebx
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x98]
push eax
push dword [esi + 8]
call ebx
lea eax, [esp + 0x5c]
push eax
push dword [esi + 8]
call edi
mov eax, dword [esp + 0x9c]
sub eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xc]
sub eax, dword [esp + 0x3c]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
sub eax, dword [esp + 0x60]
push 0x206
add eax, dword [esp + 0x48]
add eax, dword [esp + 0x6c]
lea eax, [eax + ecx + 0x15]
push eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
inc eax
push eax
xor eax, eax
push eax
push eax
push eax
push dword [esi + 8]
call edi
lea eax, [esp + 0x5c]
push eax
push dword [esi + 8]
call ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x68]
sub ecx, eax
sub eax, dword [esp + 0x3c]
sub ecx, dword [esp + 0x60]
inc eax
mov ebx, 0x204
push ebx
push eax
mov eax, dword [esp + 0x48]
sub eax, dword [esp + 0x40]
lea ecx, [ecx + edx - 5]
inc eax
push eax
push ecx
push dword [esp + 0x48]
mov dword [esp + 0x40], ecx
push 0
push dword [esp + 0x34]
call edi
mov eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x84]
push ebx
inc eax
push eax
mov eax, dword [esp + 0x90]
sub eax, dword [esp + 0x88]
inc eax
push eax
push dword [esp + 0x38]
push dword [esp + 0x90]
push 0
push dword [esp + 0x2c]
call edi
push dword [esi + 0x1450]
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret