Function at 0x4021a0
Capabilities:
Create process on windows

Disassembly:
jmp 0x4021a0
sub esp, 0x2b0
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x2ac], eax
push 0x100
lea eax, [esp + 0xb0]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xac]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4021d3
sub eax, edx
cmp byte [esp + eax + 0xab], 0x5c
lea eax, [esp + eax + 0xab]
je 0x4021f8
nop
sub eax, 1
cmp byte [eax], 0x5c
jne 0x4021f0
mov byte [eax], 0
cmp dword [0x481d4c], 7
jle 0x40242c
mov eax, dword [0x481d40]
test eax, eax
jne 0x40225a
cmp dword [0x47f004], eax
je 0x40223b
lea ecx, [esp + 0xac]
push ecx
lea edx, [esp + 0x1b0]
push str.__sSelectCard.exe__ICS_DOWN
push edx
call fcn.00426f85
add esp, 0xc
jmp 0x4022cc
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x1b0]
push str.__sSelectCard.exe__ICS_DOWN_NoMsg
push ecx
call fcn.00426f85
add esp, 0xc
jmp 0x4022cc
cmp eax, 2
jne 0x40227e
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x1b0]
push str.__sSelectCard.exe__ICS_DOWN_NoMsg
push eax
call fcn.00426f85
add esp, 0xc
jmp 0x4022cc
cmp dword [0x47f004], 0
push 0x481d00
je 0x4022a9
call fcn.00426f23
push eax
lea ecx, [esp + 0xb4]
push ecx
push str.__sSelectCard.exe___s
lea edx, [esp + 0x1bc]
push edx
jmp 0x4022c4
call fcn.00426f23
push eax
lea eax, [esp + 0xb4]
push eax
push str.__sSelectCard.exe___s_NoMsg
lea ecx, [esp + 0x1bc]
push ecx
call fcn.00426f85
add esp, 0x14
push ebx
push ebp
push esi
push edi
push 0x44
lea edx, [esp + 0x38]
push 0
push edx
call fcn.00426c10
mov edi, dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0xc
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1dc]
push edx
push 0
mov dword [esp + 0x5c], 0x44
call edi
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x40235c
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call ebx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x30]
push ecx
push edx
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
cmp dword [0x481d40], 2
jne 0x402428
cmp dword [0x47f004], 0
push 0x481d00
je 0x402394
call fcn.00426f23
push eax
lea edx, [esp + 0xc4]
push edx
push str.__sSelectCard.exe___s
lea eax, [esp + 0x1cc]
push eax
jmp 0x4023af
call fcn.00426f23
push eax
lea ecx, [esp + 0xc4]
push ecx
push str.__sSelectCard.exe___s_NoMsg
lea edx, [esp + 0x1cc]
push edx
call fcn.00426f85
add esp, 0x14
push 0x44
lea eax, [esp + 0x7c]
push 0
push eax
call fcn.00426c10
add esp, 0xc
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x7c]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x1dc]
push eax
push 0
mov dword [esp + 0xa0], 0x44
call edi
test eax, eax
je 0x402428
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
call ebx
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x30]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x24]
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2ac]
xor ecx, esp
call fcn.00426bcd
add esp, 0x2b0
ret