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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x71030500
push ebx
push esi
push edi
mov esi, 0x71052ecc
xor eax, eax
push ebp
push 0x71030c07
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.7102ff18
call fcn.7102e494
test al, al
je 0x71030532
push 0
call sub.kernel32.dll_ExitThread
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
mov eax, 0x71056988
call fcn.7102451c
mov edx, dword [0x71056988]
mov eax, 0x71030c20
call fcn.71025e9c
test al, al
je 0x71030573
lea eax, [ebp - 4]
mov edx, dword [0x710530f0]
mov edx, dword [edx]
call fcn.7102451c
mov eax, dword [ebp - 4]
call fcn.71025f20
test al, al
jne 0x71030577
xor eax, eax
jmp 0x71030579
mov al, 1
mov byte [0x7105697b], al
cmp byte [0x7105697b], 0
je 0x7103059d
lea eax, [ebp - 8]
call fcn.710271b4
mov eax, dword [ebp - 8]
call fcn.71024790
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
call fcn.71030d70
mov edx, dword [ebp - 0xc]
mov eax, dword [0x7105319c]
call fcn.71024378
mov eax, dword [0x71053180]
mov byte [eax], 1
call fcn.7102ff34
mov byte [0x71056974], al
lea eax, [ebp - 0x10]
call fcn.71027428
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x710305e1
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete byte [0x71056975]
call fcn.71028eac
cmp eax, 1
sbb eax, eax
inc eax
mov byte [0x71056977], al
mov edx, dword [0x71056988]
mov eax, 0x71030c3c
call fcn.71025e9c
mov byte [0x7105697c], al
mov edx, 0x71030c4c
mov eax, 0x80000001
call fcn.710296a4
mov byte [0x71056979], al
lea edx, [ebp - 0x18]
mov eax, 0x71030c6c
call fcn.710262dc
mov edx, dword [ebp - 0x18]
mov eax, 0x710569b0
mov ecx, 0x71030c80
call fcn.71024618
lea eax, [ebp - 0x1c]
call fcn.71026324
mov edx, dword [ebp - 0x1c]
mov eax, 0x710569a8
mov ecx, 0x71030c8c
call fcn.71024618
mov eax, dword [0x710569a8]
call fcn.710270b0
test al, al
jne 0x71030684
lea edx, [ebp - 0x20]
mov eax, 0x71030ca0
call fcn.710262dc
mov edx, dword [ebp - 0x20]
mov eax, 0x710569a8
call fcn.71024378
cmp byte [0x71056974], 0
jne 0x7103069c
mov eax, 0x710569a8
mov edx, 0x71030cb0
call fcn.71024378
cmp byte [0x71056977], 0
je 0x710306b6
mov eax, 0x71056984
mov edx, 0x71030cbc
call fcn.71024378
jmp 0x710306d0
lea edx, [ebp - 0x24]
mov eax, 0x71030cd4
call fcn.710287f4
mov edx, dword [ebp - 0x24]
mov eax, 0x71056984
call fcn.71024378
lea edx, [ebp - 0x28]
mov eax, dword [0x71056984]
call fcn.7102732c
mov edx, dword [ebp - 0x28]
mov eax, 0x71056980
call fcn.71024378
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.71023008
mov eax, dword [ebp - 0x30]
mov edi, dword [0x71053208]
mov edi, dword [edi]
lea edx, [ebp - 0x2c]
call edi
mov edx, dword [ebp - 0x2c]
mov eax, 0x710569a0
call fcn.71024378
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.71023008
mov eax, dword [ebp - 0x3c]
mov edi, dword [0x710530c4]
mov edi, dword [edi]
lea edx, [ebp - 0x38]
call edi
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.71026d94
mov edx, dword [ebp - 0x34]
mov eax, 0x7105698c
call fcn.71024378
push 0x71030ce8
lea edx, [ebp - 0x40]
mov eax, dword [0x7105698c]
call fcn.71025bf0
push dword [ebp - 0x40]
push 0x71030cf4
push 0x71030d00
push 0x71030d0c
push 0x71030d18
mov eax, 0x710569a4
mov edx, 6
call fcn.71024694
cmp byte [0x71052eb8], 0
je 0x710307b2
push 0x71030ce8
push dword [0x7105698c]
push 0x71030cf4
push 0x71030d00
push 0x71030d0c
push 0x71030d18
mov eax, 0x710569a4
mov edx, 6
call fcn.71024694
cmp dword [esi], 0
jne 0x710307c3
mov eax, 0x4021c
call fcn.71026bd4
mov dword [esi], eax
cmp dword [esi], 0
je 0x71030bdf
mov edx, 0x71052ed0
mov eax, 0x71030d24
call fcn.7102d968
test al, al
je 0x71030bdf
mov eax, dword [0x71052ed0]
mov edx, dword [0x71052ed0]
mov dword [eax + 0x1f4], edx
mov eax, dword [esi]
mov edx, dword [0x71052ed0]
mov dword [eax + 0x1f4], edx
mov eax, dword [esi]
mov byte [eax + 0x1fe], 0
mov eax, dword [esi]
mov edx, dword [0x710567f0]
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.71029c2c
push eax
mov eax, dword [esi]
add eax, 0x80
push eax
call fcn.71026fd4
mov eax, dword [0x71052ed0]
add eax, 0x21c
mov dword [0x710569bc], eax
mov eax, dword [0x71052ed0]
add eax, 0x218
mov dword [0x710569cc], eax
mov eax, 0x71056998
mov ecx, 0x71030d38
mov edx, dword [0x710569a8]
call fcn.71024618
mov edx, 0x710569b8
mov eax, dword [0x71056998]
call fcn.71027b08
mov dword [0x710569c8], eax
mov cl, 1
mov edx, dword [0x710569b8]
mov eax, dword [0x710569c8]
call fcn.71028500
mov dword [0x710569c0], eax
mov edx, dword [0x710569bc]
mov eax, dword [0x710569c0]
call fcn.710301c8
test eax, eax
je 0x710308e5
push 0x71030d4c
call fcn.710275b4
mov ecx, dword [0x710569b8]
mov edx, dword [0x710569c0]
mov eax, dword [0x710569bc]
call fcn.710259a8
mov eax, dword [0x710569cc]
mov edx, dword [0x710569b8]
mov dword [eax], edx
mov edx, dword [0x710569c0]
mov eax, dword [0x710569bc]
call fcn.710301c8
test eax, eax
je 0x71030952
push 0x71030d60
call fcn.710275b4
mov eax, dword [0x710569cc]
mov edx, dword [eax]
mov eax, dword [0x710569bc]
call fcn.7102b3e8
mov eax, dword [0x710569cc]
mov edx, dword [eax]
mov eax, dword [0x710569bc]
call fcn.71028694
mov dword [0x710569c8], eax
mov eax, dword [0x710569cc]
mov edx, dword [eax]
mov ecx, dword [0x71056998]
mov eax, dword [0x710569c8]
call fcn.7102798c
mov eax, dword [0x710569c8]
call fcn.71022cb0
xor eax, eax
mov dword [0x710569c8], eax
cmp byte [0x71056975], 0
jne 0x71030a7c
lea eax, [ebp - 0x44]
call fcn.71027428
mov edx, dword [ebp - 0x44]
mov eax, 0x71056994
call fcn.71024378
mov edx, 0x710569b4
mov eax, dword [0x71056994]
call fcn.71027b08
mov dword [0x710569c4], eax
push 0x80
mov eax, dword [0x71056994]
call fcn.71024790
push eax
mov eax, dword [esi]
push eax
call fcn.71026f8c
mov edx, dword [0x710569bc]
mov eax, dword [0x710569c4]
call fcn.710301c8
test eax, eax
je 0x71030a1a
push 6
push 0x71030d6c
mov eax, dword [0x71052ed0]
add eax, 0x20c
push eax
call fcn.71026f8c
push 0x80
mov eax, dword [0x71056994]
call fcn.71024790
push eax
mov eax, dword [0x71052ed0]
push eax
call fcn.71026f8c
mov eax, dword [0x71052ed0]
mov edx, dword [0x710567f0]
mov dword [eax + 0x200], edx
mov ecx, dword [0x710569b4]
mov edx, dword [0x710569c4]
mov eax, dword [0x710569bc]
call fcn.710259a8
mov eax, dword [0x710569cc]
mov edx, dword [0x710569b4]
mov dword [eax], edx
mov eax, dword [esi]
mov edx, dword [0x710567f0]
mov dword [eax + 0x1f8], edx
mov eax, dword [0x710531f4]
cmp dword [eax], 0
jne 0x71030a41
mov eax, dword [esi]
cmp byte [eax + 0x1fc], 0
jne 0x71030a41
xor eax, eax
jmp 0x71030a43
mov al, 1
neg al
sbb eax, eax
mov edx, dword [0x710531f4]
mov dword [edx], eax
mov eax, dword [0x710531f4]
cmp dword [eax], 1
sbb eax, eax
inc eax
mov edx, dword [esi]
mov byte [edx + 0x1fc], al
cmp dword [0x710569c4], 0
je 0x71030a75
mov eax, dword [0x710569c4]
call fcn.71022cb0
xor eax, eax
mov dword [0x710569c4], eax
cmp byte [0x71056975], 0
je 0x71030a9f
mov edi, dword [0x7105311c]
mov edi, dword [edi]
mov eax, dword [esi]
call edi
mov ecx, eax
mov edx, dword [esi]
mov eax, 0x71056994
call fcn.71024414
mov eax, dword [0x710569bc]
call fcn.710282b4
test al, al
je 0x71030bdf
mov eax, dword [esi]
add eax, 0x21c
mov ecx, 0x40000
mov edx, dword [0x710569bc]
call fcn.710259a8
mov eax, dword [0x710569cc]
mov eax, dword [eax]
mov edx, dword [esi]
mov dword [edx + 0x218], eax
mov ebx, dword [0x710530c4]
mov ebx, dword [ebx]
lea edx, [ebp - 0x48]
mov eax, dword [0x71056994]
call ebx
mov edx, dword [ebp - 0x48]
mov eax, 0x71056990
call fcn.71024378
lea eax, [ebp - 0x4c]
mov edx, dword [0x710531bc]
mov edx, dword [edx]
call fcn.7102451c
mov eax, dword [ebp - 0x4c]
mov edx, dword [0x71056994]
call fcn.71025e9c
test al, al
jne 0x71030b3e
lea eax, [ebp - 0x50]
mov edx, dword [0x71053118]
mov edx, dword [edx]
call fcn.7102451c
mov eax, dword [ebp - 0x50]
mov edx, dword [0x71056994]
call fcn.71025e9c
test al, al
jne 0x71030b3e
xor eax, eax
jmp 0x71030b40
mov al, 1
mov byte [0x71056976], al
mov eax, dword [0x710531f4]
cmp dword [eax], 0
jne 0x71030b5e
mov eax, dword [esi]
cmp byte [eax + 0x1fc], 0
jne 0x71030b5e
xor eax, eax
jmp 0x71030b60
mov al, 1
neg al
sbb eax, eax
mov edx, dword [0x710531f4]
mov dword [edx], eax
mov eax, dword [0x710531f4]
cmp dword [eax], 0
je 0x71030bbe
mov eax, dword [esi]
cmp byte [eax + 0x1ea], 0
jne 0x71030b96
push 0xa
mov eax, dword [0x71053148]
push eax
mov eax, dword [esi]
add eax, 0x1ea
push eax
call fcn.71026f8c
mov eax, dword [0x71053148]
cmp byte [eax], 0
jne 0x71030bb5
push 0xa
mov eax, dword [esi]
add eax, 0x1ea
push eax
mov eax, dword [0x71053148]
push eax
call fcn.71026f8c
mov eax, dword [esi]
mov byte [eax + 0x1fc], 1
call fcn.710303a8
cmp dword [0x710569c0], 0
je 0x71030bd6
mov eax, dword [0x710569c0]
call fcn.71022cb0
xor eax, eax
mov dword [0x710569c0], eax
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x71030c0e
lea eax, [ebp - 0x50]
mov edx, 0xf
call fcn.71024348
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.71024348
ret