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

Disassembly:
push 0xffffffffffffffff
push 0x5a1458
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
mov esi, ecx
push edi
push ebx
mov eax, dword [esi + 0x3c]
lea ecx, [esi + 0x3c]
call dword [eax + 4]
lea eax, [ebx + 0x14]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov ecx, dword [eax]
mov dword [esp + 0x44], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x4c], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp eax, ebp
mov dword [esp + 0x50], edx
jne 0x4ecf79
mov ecx, dword [esi + 0x40]
push ebp
push ebp
lea eax, [esp + 0x3c]
push ecx
push eax
push 0x40a00001
push 0x6021f0
push str.LISTBOX
mov dword [esp + 0x50], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.0056f9a3
and eax, 0x400000
mov ecx, esi
or al, 0x80
push eax
call fcn.0056cf7c
mov eax, dword [esi + 0x40]
cmp eax, ebp
je 0x4ecf74
mov eax, dword [eax + 0x1c]
jmp 0x4ecf76
xor eax, eax
mov dword [esi + 0x20], eax
mov ecx, dword [esi + 0x40]
mov eax, dword [ecx + 0xe8]
add eax, 0x1c
cmp eax, ebp
jne 0x4ecf8d
xor eax, eax
jmp 0x4ecf90
mov eax, dword [eax + 4]
mov edx, dword [esi + 0x1c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 1
push eax
push 0x30
push edx
call edi
mov eax, dword [esi + 0x1c]
push ebp
push ebp
push 0x184
push eax
call edi
mov ebp, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
sub ebp, ecx
mov ecx, dword [esi + 0x40]
push ecx
lea ecx, [esp + 0x78]
inc ebp
call fcn.005743f4
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x31
push edx
mov dword [esp + 0xa0], 0
call edi
push eax
call fcn.005745d3
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x6c]
call fcn.0046bd40
push 0xa
mov byte [esp + 0x94], 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esi + 0x4c]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x48]
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [edx + 0x70]
mov ecx, dword [esi + 0x4c]
push ebx
mov byte [esp + 0x94], 2
mov edx, dword [ecx]
call dword [edx + 0x13c]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], 0
call fcn.004f21c0
test eax, eax
jle 0x4ed13f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
push eax
call fcn.0048b4c0
mov ebx, eax
lea ecx, [ebx + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.0056bc92
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x1c]
push edx
push 0
push 0x180
push eax
call edi
mov ecx, dword [esi + 0x1c]
push ebx
push eax
push 0x19a
push ecx
mov dword [esp + 0x34], eax
call edi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
add ecx, edx
cmp ebp, ecx
jg 0x4ed0df
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov eax, dword [esp + 0x88]
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
lea ebp, [ecx + edx]
cmp dword [esp + 0x20], 0xffffffff
jne 0x4ed0fc
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push eax
push ecx
call fcn.00425064
add esp, 8
test eax, eax
je 0x4ed107
mov edx, dword [esp + 0x20]
mov eax, dword [ebx + 0x20]
cmp edx, eax
jne 0x4ed119
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push 0x186
push ecx
call edi
lea ecx, [esp + 0x10]
call fcn.0056bf1d
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x9c]
inc ebx
mov dword [esp + 0x14], ebx
call fcn.004f21c0
cmp ebx, eax
jl 0x4ed04b
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x1a1
push edx
call edi
mov ecx, dword [esi + 0x1c]
push 0
mov ebx, eax
mov eax, dword [esp + 0x54]
push 0
push 0x18b
push ecx
mov dword [esp + 0x58], eax
call edi
cmp eax, 0xa
jle 0x4ed173
mov eax, 0xa
jmp 0x4ed182
mov edx, dword [esi + 0x1c]
push 0
push 0
push 0x18b
push edx
call edi
imul eax, ebx
mov ecx, dword [esp + 0x50]
lea edx, [ecx + eax + 2]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x44]
sub eax, ebp
push ecx
mov ecx, dword [esi + 0x40]
mov dword [esp + 0x54], edx
mov dword [esp + 0x48], eax
call fcn.005741ea
lea edx, [esp + 0x44]
lea eax, [esp + 0x54]
push edx
push eax
call fcn.004900b0
mov ecx, eax
call fcn.00490400
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x60]
mov edi, dword [sym.imp.USER32.dll_OffsetRect]
cmp ecx, eax
jle 0x4ed1fd
mov edx, dword [esp + 0x58]
mov ebx, dword [esp + 0x48]
add eax, edx
cdq
sub eax, edx
sar eax, 1
cmp ebx, eax
jle 0x4ed1fd
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
mov ebp, dword [edx + 0xc]
sub eax, ebp
sub eax, ecx
add eax, ebx
push eax
lea eax, [esp + 0x48]
push 0
push eax
call edi
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x54]
cmp ecx, eax
jge 0x4ed215
sub eax, ecx
push 0
lea ecx, [esp + 0x48]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x5c]
cmp ecx, eax
jle 0x4ed22d
sub eax, ecx
push 0
lea edx, [esp + 0x48]
push eax
push edx
call edi
mov ecx, esi
call fcn.0056fbcd
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x4ed29c
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push 0xfffffffffffffff8
push eax
call edi
push 0
push SysReAllocStringLen
push 0x40000000
mov ecx, esi
call fcn.0056f9bd
mov eax, dword [esi + 0x40]
mov edx, dword [esi + 0x1c]
mov ecx, dword [eax + 0x1c]
push ecx
push 0xfffffffffffffff8
push edx
call edi
mov ecx, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
sub ecx, eax
push 0x250
push ecx
mov ecx, dword [esp + 0x4c]
sub edx, ecx
push edx
push eax
push ecx
push 0x604278
mov ecx, esi
call fcn.0056fb15
push esi
call fcn.0046b470
add esp, 4
lea ecx, [esp + 0x18]
mov byte [esp + 0x90], 1
call fcn.0056bf1d
lea ecx, [esp + 0x64]
mov byte [esp + 0x90], 0
call fcn.0046bde0
lea ecx, [esp + 0x74]
mov dword [esp + 0x90], 0xffffffff
call fcn.00574466
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret 8