Function at 0x402440
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
push ebx
push esi
push edi
push 1
mov esi, ecx
pop edi
cmp dword [esi + 4], edi
jne 0x40245d
call fcn.00401ed7
jmp 0x40247f
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x402470
and byte [eax], 0
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.00402074
test eax, eax
jne 0x402486
xor eax, eax
jmp 0x402635
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edi
cmp eax, dword [esi + 4]
jne 0x4024a2
push 0xa
call fcn.00401536
and dword [ebp - 0xc], 0
pop ecx
jmp 0x4025ca
cmp dword [esi + 0xc], 0
mov edi, str.com.ms.applet.Main
je 0x4024b1
mov eax, edi
jmp 0x4024b7
mov ecx, dword [esi + 8]
mov eax, dword [ecx + eax*4]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebx
push eax
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00401d6f
test eax, eax
mov dword [esi + 0x28], eax
je 0x4025ca
cmp dword [esi + 0xc], 0
je 0x4024e0
mov ecx, edi
jmp 0x4024ec
mov ecx, dword [esi + 8]
mov edx, dword [ebp - 8]
mov ecx, dword [ecx + edx*4]
inc dword [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x28]
cmp dword [ebp - 4], 0
mov dword [0x404b88], eax
mov dword [ebp - 0xa0], 0x94
je 0x4025b7
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4025b7
cmp dword [ebp - 0x90], 2
je 0x4025b7
mov edi, dword [ebp - 8]
push str.JVIEW
call ebx
mov ecx, dword [ebp - 4]
cmp edi, dword [esi + 4]
lea eax, [ecx + eax + 1]
mov dword [ebp - 4], eax
jge 0x402555
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
inc edi
push eax
jmp 0x40253a
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
mov dword [ebp - 4], edi
je 0x4025b7
push str.JVIEW
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x404b88]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 4]
jge 0x4025a5
push 0x4049e0
push dword [ebp - 4]
call edi
mov eax, dword [esi + 8]
mov eax, dword [eax + ebx*4]
inc ebx
push eax
push dword [ebp - 4]
call edi
jmp 0x402587
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
cmp eax, dword [esi + 4]
jge 0x4025ca
push eax
mov ecx, esi
call fcn.00402387
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402632
cmp dword [esi + 0x24], 0
lea edi, [esi + 0x24]
je 0x402603
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
test eax, eax
je 0x4025ec
push eax
push edi
mov ecx, esi
call fcn.00401db0
mov eax, dword [ebx]
test eax, eax
je 0x4025fc
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebx], 0
mov eax, dword [edi]
and dword [edi], 0
mov dword [ebx], eax
mov ecx, dword [esi + 0x20]
xor edi, edi
cmp ecx, edi
je 0x402632
cmp dword [esi + 0x1c], edi
lea eax, [esi + 0x1c]
je 0x40262d
push ecx
push eax
mov ecx, esi
call fcn.00401db0
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x402632
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40262f
mov dword [eax], ecx
mov dword [esi + 0x20], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret