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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x4298
call fcn.0045a220
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x2cc]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [esi + 0x10]
mov dword [esp + 0x20], eax
call edi
push 0x3e8
push dword [esi + 0x10]
mov ebx, eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push ebx
mov dword [esp + 0x18], eax
call edi
push 0xfffffffffffffff0
push dword [esp + 0x14]
mov dword [esp + 0x28], eax
call edi
push 0xffffffffffffffec
push ebx
mov dword [esp + 0x2c], eax
call edi
push 0xffffffffffffffec
push dword [esp + 0x14]
mov dword [esp + 0x74], eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x70]
push eax
push ebx
call edi
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call edi
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x74]
push eax
push dword [esi + 0x10]
push 0
call ebx
push 2
lea eax, [esp + 0x4c]
push eax
push dword [esi + 0x10]
push 0
call ebx
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x78]
push dword [esi + 0x10]
sub ebx, dword [esp + 0x74]
and dword [esp + 0x14], 0
mov dword [esp + 0x2c], 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 + 0x38], eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40abfc
mov ecx, dword [esi + 0x18]
xor eax, eax
and dword [esp + 0x2c], eax
cmp dword [ecx + 0x2c8], eax
mov dword [esp + 0x14], eax
jle 0x40abe3
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x10]
push dword [eax]
call fcn.0044cc29
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 0x40abc7
mov eax, dword [esp + 0x80]
add eax, 0xa
cmp eax, dword [esp + 0x14]
jle 0x40abc7
mov dword [esp + 0x14], eax
inc dword [esp + 0x2c]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0xc], 0x14
cmp ecx, dword [eax + 0x2c8]
jl 0x40ab8a
mov eax, dword [esp + 0x14]
push dword [esp + 0x1c]
sub eax, ebx
push dword [esi + 0x10]
sub dword [esp + 0x30], eax
add dword [esp + 0x50], eax
add ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x18]
and dword [esp + 0xc], 0
cmp dword [eax + 0x2c8], 0
jle 0x40ad1c
mov ecx, dword [esp + 0x20]
mov eax, 0x10000000
or ecx, eax
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x24]
or ecx, eax
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], eax
push dword [esp + 0xc]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
push dword [esp + 0x58]
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x14]
push ebx
add ecx, eax
push ecx
push dword [esp + 0x7c]
push dword [esp + 0x30]
push str.STATIC
push dword [esp + 0x84]
push esi
call fcn.0040147c
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x1c]
imul eax, dword [esp + 0x34]
push eax
push dword [esp + 0x2c]
mov eax, dword [esp + 0x54]
add ecx, eax
push ecx
push dword [esp + 0x54]
push dword [esp + 0x34]
push str.EDIT
push dword [esp + 0x48]
push esi
call fcn.0040147c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x14]
push dword [eax]
lea eax, [esp + 0x9c]
push 0x4611b0
push 0xff
push eax
call fcn.0044c225
add esp, 0x10
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
lea edx, [esp + 0x298]
push edx
push dword [esp + 0x10]
call dword [eax]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [esi + 0x1c]
imul eax, dword [esp + 0x34]
add eax, dword [esi + 0x20]
add dword [esp + 0x14], 0x14
add dword [esp + 0x10], eax
inc dword [esp + 0xc]
mov eax, dword [esi + 0x18]
mov ecx, dword [esp + 0xc]
cmp ecx, dword [eax + 0x2c8]
jl 0x40ac35
push 1
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0x38], eax
call edi
push 2
lea eax, [esp + 0x3c]
push eax
push dword [esi + 0x10]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebx, dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x88]
push eax
push dword [esi + 0x10]
call ebx
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0x10]
call edi
mov eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x10]
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 + 0x10]
call edi
lea eax, [esp + 0x5c]
push eax
push dword [esi + 0x10]
call ebx
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x44]
sub ecx, eax
sub eax, dword [esp + 0x44]
push 0x204
sub eax, dword [esp + 0x64]
inc ecx
push ecx
mov ecx, dword [esp + 0x48]
sub ecx, dword [esp + 0x40]
inc ecx
push ecx
mov ecx, dword [esp + 0x74]
lea eax, [eax + ecx - 5]
push eax
push dword [esp + 0x48]
push 0
push dword [esp + 0x48]
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret