Function at 0x402521
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 0x40253e
call fcn.0040205e
jmp 0x402560
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esi + 0x1c], eax
je 0x402551
and byte [eax], 0
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004020a8
test eax, eax
jne 0x402567
xor eax, eax
jmp 0x402716
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edi
cmp eax, dword [esi + 4]
jne 0x402583
push 0xa
call fcn.00401694
and dword [ebp - 0xc], 0
pop ecx
jmp 0x4026ab
cmp dword [esi + 0xc], 0
mov edi, str.com.ms.applet.Main
je 0x402592
mov eax, edi
jmp 0x402598
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.00401ef6
test eax, eax
mov dword [esi + 0x28], eax
je 0x4026ab
cmp dword [esi + 0xc], 0
je 0x4025c1
mov ecx, edi
jmp 0x4025cd
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 [0x404bc8], eax
mov dword [ebp - 0xa0], 0x94
je 0x402698
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x402698
cmp dword [ebp - 0x90], 2
je 0x402698
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 0x402636
mov eax, dword [esi + 8]
mov eax, dword [eax + edi*4]
inc edi
push eax
jmp 0x40261b
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 0x402698
push str.JVIEW
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [0x404bc8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call edi
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 4]
jge 0x402686
push 0x404a20
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 0x402668
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 0x4026ab
push eax
mov ecx, esi
call fcn.00402468
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402713
cmp dword [esi + 0x24], 0
lea edi, [esi + 0x24]
je 0x4026e4
mov eax, dword [esi + 0x1c]
lea ebx, [esi + 0x1c]
test eax, eax
je 0x4026cd
push eax
push edi
mov ecx, esi
call fcn.00401f37
mov eax, dword [ebx]
test eax, eax
je 0x4026dd
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 0x402713
cmp dword [esi + 0x1c], edi
lea eax, [esi + 0x1c]
je 0x40270e
push ecx
push eax
mov ecx, esi
call fcn.00401f37
mov eax, dword [esi + 0x20]
cmp eax, edi
je 0x402713
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402710
mov dword [eax], ecx
mov dword [esi + 0x20], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret