Function at 0x402260
Capabilities:
Accept command line arguments
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x46c
mov eax, dword [0x44b00c]
xor eax, esp
mov dword [esp + 0x468], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0
push str.GIAN07
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x4022c6
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push 0xf120
push 0x112
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x468]
xor ecx, esp
call fcn.0042e689
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
cmp byte [eax], 0
je 0x40233a
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea edx, [esp + 0x88]
lea ecx, [eax + 1]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4022e0
lea eax, [esp + 0x88]
push 0x22
push eax
call fcn.0042f9f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4022ad
lea eax, [esp + 0x88]
push 0x5c
push eax
call fcn.0042f9f0
add esp, 8
test eax, eax
je 0x4022ad
cmp byte [esi], 0x5c
je 0x402326
dec esi
cmp byte [esi], 0x5c
jne 0x402320
lea eax, [esp + 0x88]
mov byte [esi + 1], 0
push eax
call fcn.00431ce9
add esp, 4
push str.NEO_TAMA_ICON
push ebx
mov dword [esp + 0x5c], 8
mov dword [esp + 0x60], 0x402680
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], ebx
call dword [sym.imp.USER32.dll_LoadIconA]
push 4
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], str.GIAN07
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x4022ad
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 1
call esi
push 0
mov edi, eax
call esi
push 0
push ebx
push 0
push 0
push edi
push eax
push 0
push 0
push 0x90080008
push 0x446a5c
push str.GIAN07
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x44de70], eax
test eax, eax
je 0x4022ad
push 0
mov dword [0x44de64], ebx
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
push dword [0x44de70]
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
mov edi, eax
push 0
push 0xf030
push edi
call esi
push 0
push 0xf020
push edi
call esi
push 0
push 0xf000
push edi
call esi
call fcn.0042de40
test al, al
jne 0x402443
push dword [0x44de70]
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4022ad
push 0
push 0
push 0
push 0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40248b
push 0
push 0
push 0
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x40265c
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x402443
cmp dword [0x44de60], 0
je 0x402651
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
mov ecx, ebx
mov dword [esp + 0x24], ebx
sub ecx, dword [0x44de6c]
cmp ecx, 0x10
jae 0x4024ba
cmp byte [0x44b8df], 0
jne 0x402443
cmp byte [0x44de74], 0
mov dword [esp + 0x28], 0x446a80
je 0x4024d6
lea ecx, [esp + 0x30]
call fcn.00402a50
jmp 0x4024df
lea ecx, [esp + 0x34]
call fcn.00402930
mov esi, dword [eax]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], esi
test si, si
jne 0x4025fb
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x34
xor edi, edi
mov dword [esp + 0x58], 0x83
push eax
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.WINMM.dll_joyGetPosEx]
test eax, eax
jne 0x4025f1
mov eax, dword [esp + 0x60]
mov edx, 0x446a80
mov ecx, dword [esp + 0x5c]
mov bx, di
shr eax, 0xb
mov dword [esp + 0x20], eax
mov eax, 4
shr ecx, 0xb
mov dword [esp + 0x1c], ecx
lea eax, [eax*8 + 0x446a80]
cmp eax, edx
je 0x402585
mov esi, eax
lea esp, [esp]
mov eax, dword [edx]
mov al, byte [eax]
test al, al
je 0x402576
movzx ecx, al
mov eax, 1
dec ecx
shl eax, cl
test dword [esp + 0x74], eax
je 0x402576
or bx, word [edx + 4]
mov word [esp + 0xc], bx
mov edi, dword [esp + 0xc]
add edx, 8
cmp edx, esi
jne 0x402550
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
movzx eax, bx
cmp ecx, 0xc
ja 0x402592
or edi, 4
jmp 0x4025a3
mov edi, eax
mov dword [esp + 0xc], edi
cmp ecx, 0x14
jb 0x4025a7
or eax, 8
movzx edi, ax
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x20]
movzx ecx, word [esp + 0xc]
cmp edx, 0xc
ja 0x4025cb
mov ebx, dword [esp + 0x24]
or edi, 1
movzx eax, di
mov dword [esp + 0xc], edi
mov word [0x44e308], ax
jmp 0x402601
mov eax, ecx
mov dword [esp + 0xc], eax
cmp edx, 0x14
jb 0x4025e0
or ecx, 2
movzx eax, cx
mov dword [esp + 0xc], eax
movzx eax, word [esp + 0xc]
mov ebx, dword [esp + 0x24]
mov word [0x44e308], ax
jmp 0x402601
xor eax, eax
mov word [0x44e308], ax
jmp 0x402601
mov ax, word [0x44e308]
or si, ax
mov byte [esp + 0x13], 0
mov al, byte [esp + 0x2a]
mov byte [0x44de75], al
lea eax, [esp + 0x13]
push eax
mov word [0x44e30c], si
call dword [0x44b8c8]
add esp, 4
cmp byte [esp + 0x13], 0
je 0x402646
push 0
push 0xf060
push 0x112
push dword [0x44de70]
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [0x44de6c], ebx
jmp 0x402443
call dword [sym.imp.USER32.dll_WaitMessage]
jmp 0x402443
mov ecx, dword [esp + 0x474]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042e689
mov esp, ebp
pop ebp
ret 0x10