Function at 0x402970
Capabilities:
Accept command line arguments
Create process on windows
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x51be44
mov eax, dword fs:[0]
push eax
mov eax, 0x10f0
call fcn.004fa1c0
mov eax, dword [0x563fac]
xor eax, esp
mov dword [esp + 0x10ec], eax
push ebp
push esi
push edi
mov eax, dword [0x563fac]
xor eax, esp
push eax
lea eax, [esp + 0x1100]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
xor esi, esi
lea ecx, [esp + 0x2d2]
xor eax, eax
push esi
push ecx
mov ebp, 0x12c
mov word [esp + 0x2d8], ax
call fcn.004f7470
push 0x208
lea eax, [esp + 0x6fe]
xor edx, edx
push esi
push eax
mov word [esp + 0x704], dx
call fcn.004f7470
push 0x208
lea edx, [esp + 0x4fa]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x500], cx
call fcn.004f7470
push 0x208
lea ecx, [esp + 0xe6]
xor eax, eax
push esi
push ecx
mov word [esp + 0xec], ax
call fcn.004f7470
add esp, 0x30
push 0x104
lea edx, [esp + 0x2d0]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push 0x105
lea eax, [esp + 0x4f0]
push eax
push 0x105
lea ecx, [esp + 0x708]
push ecx
lea edx, [esp + 0x2ec]
push edx
call fcn.004f6034
lea eax, [esp + 0x710]
push eax
lea ecx, [esp + 0xe4]
push 0x105
push ecx
call fcn.004f5fb7
lea edx, [esp + 0x50c]
push edx
lea eax, [esp + 0xf0]
push 0x105
push eax
call fcn.004f5fb7
push 0x5468e8
lea ecx, [esp + 0xfc]
push 0x105
push ecx
call fcn.004f5fb7
add esp, 0x48
push 0x7fe
lea eax, [esp + 0x902]
xor edx, edx
push esi
push eax
mov word [esp + 0x908], dx
call fcn.004f7470
add esp, 0xc
push 0x546684
lea ecx, [esp + 0x3c]
mov dword [esp + 0x38], 0x411
call fcn.00401c80
mov dword [esp + 0x1108], esi
push 0x54668c
lea ecx, [esp + 0x44]
mov dword [esp + 0x40], 0x40c
call fcn.00401c80
mov byte [esp + 0x1108], 1
push 0x546694
lea ecx, [esp + 0x4c]
mov dword [esp + 0x48], 0x410
call fcn.00401c80
mov byte [esp + 0x1108], 2
push 0x54669c
lea ecx, [esp + 0x54]
mov dword [esp + 0x50], 0x407
call fcn.00401c80
mov byte [esp + 0x1108], 3
push 0x5466a4
lea ecx, [esp + 0x5c]
mov dword [esp + 0x58], 0xc0a
call fcn.00401c80
mov byte [esp + 0x1108], 4
push str.zh_cn
lea ecx, [esp + 0x64]
mov dword [esp + 0x60], 0x804
call fcn.00401c80
mov byte [esp + 0x1108], 5
push str.zh_tw
lea ecx, [esp + 0x6c]
mov dword [esp + 0x68], 0x404
call fcn.00401c80
mov byte [esp + 0x1108], 6
push 0x5466ac
lea ecx, [esp + 0x74]
mov dword [esp + 0x70], 0x412
call fcn.00401c80
mov dword [esp + 0x1108], 7
lea ecx, [ecx]
cmp edi, dword [esp + esi*8 + 0x34]
je 0x402be1
inc esi
cmp esi, 8
jb 0x402bd0
jmp 0x402cc3
push 0x5466cc
lea ecx, [esp + 0x1c]
call fcn.00401c80
mov byte [esp + 0x1108], 8
mov ecx, dword [esp + esi*8 + 0x34]
push ecx
push str.TRANSFORMS
lea edx, [esp + 0x20]
push str._s:_d
push edx
call fcn.004036a0
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x910]
push 0x400
push ecx
call fcn.004f5fb7
add esp, 0x1c
push 0x5466cc
lea ecx, [esp + 0x24]
call fcn.00401c80
mov byte [esp + 0x1108], 9
mov edx, dword [esp + esi*8 + 0x38]
push edx
push str.SELECTLANGUAGE
lea eax, [esp + 0x28]
push str._s_s
push eax
call fcn.004036a0
mov ecx, dword [esp + 0x30]
push ecx
lea edx, [esp + 0x910]
push 0x400
push edx
call fcn.004f5fb7
mov byte [esp + 0x1124], 8
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0x1c
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402c9b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x1108], 7
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402cc3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
cmp dword [esp + 0x1c], esi
mov edi, eax
jle 0x402d90
mov edi, edi
mov edx, dword [edi + esi*4]
push 8
push str.TIMEOUT
push edx
call fcn.004f6654
add esp, 0xc
test eax, eax
jne 0x402d2c
mov eax, dword [edi + esi*4]
add eax, 0x10
push eax
call fcn.004f66a1
add esp, 4
cmp eax, 0x15180
jle 0x402d24
mov ebp, 0x15180
jmp 0x402d85
test eax, eax
jle 0x402d85
mov ebp, eax
jmp 0x402d85
mov ecx, dword [edi + esi*4]
push 1
push 0x546964
push ecx
call fcn.004f6654
add esp, 0xc
test eax, eax
je 0x402d55
mov eax, dword [edi + esi*4]
push 0x3d
push eax
call fcn.004f66ac
add esp, 8
test eax, eax
je 0x402d85
mov edx, dword [edi + esi*4]
push edx
lea eax, [esp + 0x900]
push 0x400
push eax
call fcn.004f5fb7
push 0x546968
lea ecx, [esp + 0x90c]
push 0x400
push ecx
call fcn.004f5fb7
add esp, 0x18
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x402cf0
test edi, edi
je 0x402d9b
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x44
lea edx, [esp + 0x78]
push 0
push edx
call fcn.004f7470
xor eax, eax
add esp, 0xc
push 0x5466cc
lea ecx, [esp + 0x18]
mov dword [esp + 0x78], 0x44
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call fcn.00401c80
lea eax, [esp + 0x8fc]
push eax
lea ecx, [esp + 0xc0]
push ecx
lea edx, [esp + 0x1c]
push 0x54696c
push edx
mov byte [esp + 0x1118], 0xa
call fcn.004036a0
mov eax, dword [esp + 0x24]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x14]
cmp dword [eax - 4], 1
jle 0x402e24
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401990
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x78]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004f66d2
add esp, 8
test eax, eax
jl 0x402f0f
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx - 8]
jg 0x402f0f
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
mov word [ecx + eax*2], dx
cmp esi, 1
jne 0x402e95
mov eax, dword [esp + 0x24]
test eax, eax
je 0x402e95
imul ebp, ebp, 0x3e8
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x402ea2
imul ebp, ebp, 0x3e8
push ebp
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x1108], 7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x402f20
push 8
push 8
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x1118], 0xffffffff
call fcn.004f62b2
mov ecx, dword [esp + 0x1100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x10ec]
xor ecx, esp
call fcn.004f5c3a
add esp, 0x10fc
ret
push 0x80070057
call fcn.00401dd0
int3