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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2198
call fcn.00415a90
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x210]
push ebx
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push dword [esi + 4]
mov dword [esp + 0x28], eax
call edi
push 0x3e8
push dword [esi + 4]
mov ebx, eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
push 0xfffffffffffffff0
push ebx
mov dword [esp + 0x14], eax
call edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov dword [esp + 0x34], eax
call edi
push 0xffffffffffffffec
push ebx
mov dword [esp + 0x1c], eax
call edi
push 0xffffffffffffffec
push dword [esp + 0x10]
mov dword [esp + 0x54], eax
call edi
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x50]
push eax
push ebx
call edi
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x10]
call edi
mov ebx, dword [sym.imp.USER32.dll_MapWindowPoints]
push 2
lea eax, [esp + 0x54]
push eax
push dword [esi + 4]
push 0
call ebx
push 2
lea eax, [esp + 0x38]
push eax
push dword [esi + 4]
push 0
call ebx
mov eax, dword [esp + 0x58]
sub eax, dword [esp + 0x50]
push dword [esi + 4]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x44]
sub eax, dword [esp + 0x3c]
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetDC]
test eax, eax
mov dword [esp + 0x28], eax
je 0x410a90
mov ecx, dword [esi + 0x10]
xor eax, eax
and dword [esp + 0xc], eax
cmp dword [ecx + 0x20c], eax
mov dword [esp + 0x1c], eax
jle 0x410a73
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x14]
push dword [eax]
call sub.msvcrt.dll_strlen
pop ecx
push eax
mov eax, dword [esp + 0x18]
push dword [eax]
push dword [esp + 0x34]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
test eax, eax
je 0x410a57
mov eax, dword [esp + 0x80]
add eax, 0xa
cmp eax, dword [esp + 0x1c]
jle 0x410a57
mov dword [esp + 0x1c], eax
inc dword [esp + 0xc]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0xc]
add dword [esp + 0x10], 0x14
cmp ecx, dword [eax + 0x20c]
jl 0x410a1a
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
push dword [esp + 0x28]
sub dword [esp + 0x28], eax
push dword [esi + 4]
add dword [esp + 0x3c], eax
add dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esi + 0x10]
and dword [esp + 0x10], ebx
cmp dword [eax + 0x20c], ebx
jle 0x410c7d
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
mov edi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [eax + ecx + 0x14]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], eax
mov eax, 0x10000000
or ecx, eax
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x14]
or ecx, eax
mov eax, dword [esp + 0x20]
add eax, 0x10
mov dword [esp + 0x2c], ecx
mov dword [esp + 0xc], eax
push dword [esp + 0x10]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
push dword [esp + 0x44]
mov eax, dword [esp + 0x58]
push dword [esp + 0x1c]
add eax, ebx
push eax
push dword [esp + 0x5c]
push dword [esp + 0x38]
push str.STATIC
push dword [esp + 0x64]
push esi
call fcn.0040151c
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x30]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add eax, ebx
push eax
push dword [esp + 0x40]
push dword [esp + 0x3c]
push str.EDIT
push dword [esp + 0x60]
push esi
call fcn.0040151c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
push dword [eax]
lea eax, [esp + 0x9c]
push 0x417934
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x18]
call edi
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
lea edx, [esp + 0x198]
push edx
push dword [esp + 0x14]
call dword [eax]
push eax
push dword [esp + 0x24]
call edi
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, dword [ecx + 0x20c]
jge 0x410c4d
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x1c]
push dword [esp + 0x44]
mov eax, dword [esp + 0x58]
push dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, ebx
push eax
mov eax, dword [esp + 0x5c]
add ecx, eax
push ecx
push dword [esp + 0x38]
push str.STATIC
push dword [esp + 0x64]
push esi
call fcn.0040151c
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x30]
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x40]
add eax, ebx
push eax
mov eax, dword [esp + 0x40]
add ecx, eax
push ecx
push dword [esp + 0x3c]
push str.EDIT
push dword [esp + 0x60]
push esi
call fcn.0040151c
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xc]
push dword [eax + 0x14]
lea eax, [esp + 0x9c]
push 0x417934
push eax
call sub.msvcrt.dll_sprintf
add esp, 0xc
lea eax, [esp + 0x98]
push eax
push dword [esp + 0x18]
call edi
mov ecx, dword [esi + 0xc]
mov edx, dword [ecx]
lea eax, [esp + 0x198]
push eax
mov eax, dword [esp + 0x14]
inc eax
push eax
call dword [edx]
push eax
push dword [esp + 0x24]
call edi
mov eax, dword [esi + 0x14]
imul eax, dword [esp + 0x30]
add eax, dword [esi + 0x18]
add dword [esp + 0x10], 2
mov ecx, dword [esp + 0x10]
add dword [esp + 0xc], 0x28
add ebx, eax
mov eax, dword [esi + 0x10]
cmp ecx, dword [eax + 0x20c]
jl 0x410add
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
lea ecx, [esp + 0x60]
push ecx
push eax
mov dword [esp + 0x1c], eax
call edi
push 2
lea eax, [esp + 0x64]
push eax
push dword [esi + 4]
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
lea eax, [esp + 0x88]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call edi
mov eax, dword [esp + 0x8c]
sub eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x18]
sub eax, dword [esp + 0x64]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
sub eax, dword [esp + 0x74]
push 0x206
add eax, dword [esp + 0x70]
add eax, dword [esp + 0x80]
lea eax, [eax + ebx + 0x15]
push eax
mov eax, dword [esp + 0x2c]
add eax, ecx
lea eax, [eax + eax + 0x32]
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push dword [esi + 4]
call edi
lea eax, [esp + 0x70]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x6c]
sub ecx, eax
sub eax, dword [esp + 0x6c]
push 0x204
sub eax, dword [esp + 0x78]
inc ecx
push ecx
mov ecx, dword [esp + 0x70]
sub ecx, dword [esp + 0x68]
inc ecx
push ecx
mov ecx, dword [esp + 0x88]
lea eax, [eax + ecx - 5]
push eax
push dword [esp + 0x70]
push ebx
push dword [esp + 0x2c]
call edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret