Function at 0x31ed04f8
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x31ed0500
push ebx
push esi
push edi
mov esi, 0x31ef2ecc
xor eax, eax
push ebp
push 0x31ed0c07
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.31ecff18
call fcn.31ece494
test al, al
je 0x31ed0532
push 0
call sub.kernel32.dll_ExitThread
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
mov eax, 0x31ef6988
call fcn.31ec451c
mov edx, dword [0x31ef6988]
mov eax, 0x31ed0c20
call fcn.31ec5e9c
test al, al
je 0x31ed0573
lea eax, [ebp - 4]
mov edx, dword [0x31ef30f0]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 4]
call fcn.31ec5f20
test al, al
jne 0x31ed0577
xor eax, eax
jmp 0x31ed0579
mov al, 1
mov byte [0x31ef697b], al
cmp byte [0x31ef697b], 0
je 0x31ed059d
lea eax, [ebp - 8]
call fcn.31ec71b4
mov eax, dword [ebp - 8]
call fcn.31ec4790
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
call fcn.31ed0d70
mov edx, dword [ebp - 0xc]
mov eax, dword [0x31ef319c]
call fcn.31ec4378
mov eax, dword [0x31ef3180]
mov byte [eax], 1
call fcn.31ecff34
mov byte [0x31ef6974], al
lea eax, [ebp - 0x10]
call fcn.31ec7428
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x31ed05e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete byte [0x31ef6975]
call fcn.31ec8eac
cmp eax, 1
sbb eax, eax
inc eax
mov byte [0x31ef6977], al
mov edx, dword [0x31ef6988]
mov eax, 0x31ed0c3c
call fcn.31ec5e9c
mov byte [0x31ef697c], al
mov edx, 0x31ed0c4c
mov eax, 0x80000001
call fcn.31ec96a4
mov byte [0x31ef6979], al
lea edx, [ebp - 0x18]
mov eax, 0x31ed0c6c
call fcn.31ec62dc
mov edx, dword [ebp - 0x18]
mov eax, 0x31ef69b0
mov ecx, 0x31ed0c80
call fcn.31ec4618
lea eax, [ebp - 0x1c]
call fcn.31ec6324
mov edx, dword [ebp - 0x1c]
mov eax, 0x31ef69a8
mov ecx, 0x31ed0c8c
call fcn.31ec4618
mov eax, dword [0x31ef69a8]
call fcn.31ec70b0
test al, al
jne 0x31ed0684
lea edx, [ebp - 0x20]
mov eax, 0x31ed0ca0
call fcn.31ec62dc
mov edx, dword [ebp - 0x20]
mov eax, 0x31ef69a8
call fcn.31ec4378
cmp byte [0x31ef6974], 0
jne 0x31ed069c
mov eax, 0x31ef69a8
mov edx, 0x31ed0cb0
call fcn.31ec4378
cmp byte [0x31ef6977], 0
je 0x31ed06b6
mov eax, 0x31ef6984
mov edx, 0x31ed0cbc
call fcn.31ec4378
jmp 0x31ed06d0
lea edx, [ebp - 0x24]
mov eax, 0x31ed0cd4
call fcn.31ec87f4
mov edx, dword [ebp - 0x24]
mov eax, 0x31ef6984
call fcn.31ec4378
lea edx, [ebp - 0x28]
mov eax, dword [0x31ef6984]
call fcn.31ec732c
mov edx, dword [ebp - 0x28]
mov eax, 0x31ef6980
call fcn.31ec4378
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.31ec3008
mov eax, dword [ebp - 0x30]
mov edi, dword [0x31ef3208]
mov edi, dword [edi]
lea edx, [ebp - 0x2c]
call edi
mov edx, dword [ebp - 0x2c]
mov eax, 0x31ef69a0
call fcn.31ec4378
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.31ec3008
mov eax, dword [ebp - 0x3c]
mov edi, dword [0x31ef30c4]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
call edi
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.31ec6d94
mov edx, dword [ebp - 0x34]
mov eax, 0x31ef698c
call fcn.31ec4378
push 0x31ed0ce8
lea edx, [ebp - 0x40]
mov eax, dword [0x31ef698c]
call fcn.31ec5bf0
push dword [ebp - 0x40]
push 0x31ed0cf4
push 0x31ed0d00
push 0x31ed0d0c
push 0x31ed0d18
mov eax, 0x31ef69a4
mov edx, 6
call fcn.31ec4694
cmp byte [0x31ef2eb8], 0
je 0x31ed07b2
push 0x31ed0ce8
push dword [0x31ef698c]
push 0x31ed0cf4
push 0x31ed0d00
push 0x31ed0d0c
push 0x31ed0d18
mov eax, 0x31ef69a4
mov edx, 6
call fcn.31ec4694
cmp dword [esi], 0
jne 0x31ed07c3
mov eax, 0x4021c
call fcn.31ec6bd4
mov dword [esi], eax
cmp dword [esi], 0
je 0x31ed0bdf
mov edx, 0x31ef2ed0
mov eax, 0x31ed0d24
call fcn.31ecd968
test al, al
je 0x31ed0bdf
mov eax, dword [0x31ef2ed0]
mov edx, dword [0x31ef2ed0]
mov dword [eax + 0x1f4], edx
mov eax, dword [esi]
mov edx, dword [0x31ef2ed0]
mov dword [eax + 0x1f4], edx
mov eax, dword [esi]
mov byte [eax + 0x1fe], 0
mov eax, dword [esi]
mov edx, dword [0x31ef67f0]
mov dword [eax + 0x200], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x208], eax
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [esi]
mov dword [edx + 0x204], eax
call fcn.31ec9c2c
push eax
mov eax, dword [esi]
add eax, 0x80
push eax
call fcn.31ec6fd4
mov eax, dword [0x31ef2ed0]
add eax, 0x21c
mov dword [0x31ef69bc], eax
mov eax, dword [0x31ef2ed0]
add eax, 0x218
mov dword [0x31ef69cc], eax
mov eax, 0x31ef6998
mov ecx, 0x31ed0d38
mov edx, dword [0x31ef69a8]
call fcn.31ec4618
mov edx, 0x31ef69b8
mov eax, dword [0x31ef6998]
call fcn.31ec7b08
mov dword [0x31ef69c8], eax
mov cl, 1
mov edx, dword [0x31ef69b8]
mov eax, dword [0x31ef69c8]
call fcn.31ec8500
mov dword [0x31ef69c0], eax
mov edx, dword [0x31ef69bc]
mov eax, dword [0x31ef69c0]
call fcn.31ed01c8
test eax, eax
je 0x31ed08e5
push 0x31ed0d4c
call fcn.31ec75b4
mov ecx, dword [0x31ef69b8]
mov edx, dword [0x31ef69c0]
mov eax, dword [0x31ef69bc]
call fcn.31ec59a8
mov eax, dword [0x31ef69cc]
mov edx, dword [0x31ef69b8]
mov dword [eax], edx
mov edx, dword [0x31ef69c0]
mov eax, dword [0x31ef69bc]
call fcn.31ed01c8
test eax, eax
je 0x31ed0952
push 0x31ed0d60
call fcn.31ec75b4
mov eax, dword [0x31ef69cc]
mov edx, dword [eax]
mov eax, dword [0x31ef69bc]
call fcn.31ecb3e8
mov eax, dword [0x31ef69cc]
mov edx, dword [eax]
mov eax, dword [0x31ef69bc]
call fcn.31ec8694
mov dword [0x31ef69c8], eax
mov eax, dword [0x31ef69cc]
mov edx, dword [eax]
mov ecx, dword [0x31ef6998]
mov eax, dword [0x31ef69c8]
call fcn.31ec798c
mov eax, dword [0x31ef69c8]
call fcn.31ec2cb0
xor eax, eax
mov dword [0x31ef69c8], eax
cmp byte [0x31ef6975], 0
jne 0x31ed0a7c
lea eax, [ebp - 0x44]
call fcn.31ec7428
mov edx, dword [ebp - 0x44]
mov eax, 0x31ef6994
call fcn.31ec4378
mov edx, 0x31ef69b4
mov eax, dword [0x31ef6994]
call fcn.31ec7b08
mov dword [0x31ef69c4], eax
push 0x80
mov eax, dword [0x31ef6994]
call fcn.31ec4790
push eax
mov eax, dword [esi]
push eax
call fcn.31ec6f8c
mov edx, dword [0x31ef69bc]
mov eax, dword [0x31ef69c4]
call fcn.31ed01c8
test eax, eax
je 0x31ed0a1a
push 6
push 0x31ed0d6c
mov eax, dword [0x31ef2ed0]
add eax, 0x20c
push eax
call fcn.31ec6f8c
push 0x80
mov eax, dword [0x31ef6994]
call fcn.31ec4790
push eax
mov eax, dword [0x31ef2ed0]
push eax
call fcn.31ec6f8c
mov eax, dword [0x31ef2ed0]
mov edx, dword [0x31ef67f0]
mov dword [eax + 0x200], edx
mov ecx, dword [0x31ef69b4]
mov edx, dword [0x31ef69c4]
mov eax, dword [0x31ef69bc]
call fcn.31ec59a8
mov eax, dword [0x31ef69cc]
mov edx, dword [0x31ef69b4]
mov dword [eax], edx
mov eax, dword [esi]
mov edx, dword [0x31ef67f0]
mov dword [eax + 0x1f8], edx
mov eax, dword [0x31ef31f4]
cmp dword [eax], 0
jne 0x31ed0a41
mov eax, dword [esi]
cmp byte [eax + 0x1fc], 0
jne 0x31ed0a41
xor eax, eax
jmp 0x31ed0a43
mov al, 1
neg al
sbb eax, eax
mov edx, dword [0x31ef31f4]
mov dword [edx], eax
mov eax, dword [0x31ef31f4]
cmp dword [eax], 1
sbb eax, eax
inc eax
mov edx, dword [esi]
mov byte [edx + 0x1fc], al
cmp dword [0x31ef69c4], 0
je 0x31ed0a75
mov eax, dword [0x31ef69c4]
call fcn.31ec2cb0
xor eax, eax
mov dword [0x31ef69c4], eax
cmp byte [0x31ef6975], 0
je 0x31ed0a9f
mov edi, dword [0x31ef311c]
mov edi, dword [edi]
mov eax, dword [esi]
call edi
mov ecx, eax
mov edx, dword [esi]
mov eax, 0x31ef6994
call fcn.31ec4414
mov eax, dword [0x31ef69bc]
call fcn.31ec82b4
test al, al
je 0x31ed0bdf
mov eax, dword [esi]
add eax, 0x21c
mov ecx, 0x40000
mov edx, dword [0x31ef69bc]
call fcn.31ec59a8
mov eax, dword [0x31ef69cc]
mov eax, dword [eax]
mov edx, dword [esi]
mov dword [edx + 0x218], eax
mov ebx, dword [0x31ef30c4]
mov ebx, dword [ebx]
lea edx, [ebp - 0x48]
mov eax, dword [0x31ef6994]
call ebx
mov edx, dword [ebp - 0x48]
mov eax, 0x31ef6990
call fcn.31ec4378
lea eax, [ebp - 0x4c]
mov edx, dword [0x31ef31bc]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 0x4c]
mov edx, dword [0x31ef6994]
call fcn.31ec5e9c
test al, al
jne 0x31ed0b3e
lea eax, [ebp - 0x50]
mov edx, dword [0x31ef3118]
mov edx, dword [edx]
call fcn.31ec451c
mov eax, dword [ebp - 0x50]
mov edx, dword [0x31ef6994]
call fcn.31ec5e9c
test al, al
jne 0x31ed0b3e
xor eax, eax
jmp 0x31ed0b40
mov al, 1
mov byte [0x31ef6976], al
mov eax, dword [0x31ef31f4]
cmp dword [eax], 0
jne 0x31ed0b5e
mov eax, dword [esi]
cmp byte [eax + 0x1fc], 0
jne 0x31ed0b5e
xor eax, eax
jmp 0x31ed0b60
mov al, 1
neg al
sbb eax, eax
mov edx, dword [0x31ef31f4]
mov dword [edx], eax
mov eax, dword [0x31ef31f4]
cmp dword [eax], 0
je 0x31ed0bbe
mov eax, dword [esi]
cmp byte [eax + 0x1ea], 0
jne 0x31ed0b96
push 0xa
mov eax, dword [0x31ef3148]
push eax
mov eax, dword [esi]
add eax, 0x1ea
push eax
call fcn.31ec6f8c
mov eax, dword [0x31ef3148]
cmp byte [eax], 0
jne 0x31ed0bb5
push 0xa
mov eax, dword [esi]
add eax, 0x1ea
push eax
mov eax, dword [0x31ef3148]
push eax
call fcn.31ec6f8c
mov eax, dword [esi]
mov byte [eax + 0x1fc], 1
call fcn.31ed03a8
cmp dword [0x31ef69c0], 0
je 0x31ed0bd6
mov eax, dword [0x31ef69c0]
call fcn.31ec2cb0
xor eax, eax
mov dword [0x31ef69c0], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x31ed0c0e
lea eax, [ebp - 0x50]
mov edx, 0xf
call fcn.31ec4348
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.31ec4348
ret