Function at 0x2316d408
Capabilities:
Accept command line arguments
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x2316d410
push ecx
push ebx
mov ebx, 0x231749f4
xor eax, eax
push ebp
push 0x2316d831
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.23152ae0
mov byte [0x231749bc], 0
call fcn.2316d190
mov byte [0x231749b8], al
lea eax, [ebp - 4]
call fcn.23167558
mov eax, dword [ebp - 4]
call fcn.231537c0
test eax, eax
sete byte [0x231749b9]
lea edx, [ebp - 8]
mov eax, 0x2316d848
call fcn.231674dc
mov eax, dword [ebp - 8]
call fcn.23167388
mov byte [0x231731d0], al
push 0x2316d854
mov eax, dword [0x23174650]
push eax
call fcn.231686b8
test eax, eax
setne byte [0x231749ba]
mov edx, 0x2316d868
mov eax, 0x80000002
call fcn.2316a7f4
mov byte [0x231749bb], al
lea edx, [ebp - 0xc]
mov eax, 0x2316d8bc
call fcn.231674dc
mov edx, dword [ebp - 0xc]
mov eax, dword [0x23173374]
call fcn.23153690
mov eax, dword [0x2317336c]
mov byte [eax], 1
mov eax, dword [0x23173374]
mov eax, dword [eax]
call fcn.23166ea4
cmp eax, 0x100000
jbe 0x2316d4e3
mov eax, dword [0x23173374]
mov eax, dword [eax]
call fcn.23166db8
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.2315376c
mov edx, dword [ebp - 0x10]
mov eax, 0x2316d8d4
call fcn.231667f8
test al, al
je 0x2316d512
mov eax, 0x231731d4
mov edx, 0x2316d8e4
call fcn.23153690
lea edx, [ebp - 0x14]
mov eax, 0x2316d8f0
call fcn.231669f8
mov edx, dword [ebp - 0x14]
mov eax, 0x231749e0
mov ecx, 0x2316d904
call fcn.2315380c
lea eax, [ebp - 0x18]
call fcn.23166a78
mov edx, dword [ebp - 0x18]
mov eax, 0x231749dc
mov ecx, 0x2316d910
call fcn.2315380c
cmp byte [0x231749b8], 0
jne 0x2316d583
lea eax, [ebp - 0x1c]
call fcn.23166a78
mov edx, dword [ebp - 0x1c]
mov eax, 0x231749dc
mov ecx, 0x2316d924
call fcn.2315380c
mov eax, dword [0x23173374]
mov ecx, 0x2316d934
mov edx, dword [0x231749dc]
call fcn.2315380c
mov eax, dword [0x231749dc]
call fcn.2316793c
test al, al
jne 0x2316d5a3
push 0
mov eax, dword [0x231749dc]
call fcn.231539c0
push eax
call sub.kernel32.dll_CreateDirectoryA
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.23152a7c
mov eax, dword [ebp - 0x20]
call fcn.2316c4fc
mov dword [ebx], eax
mov eax, 0x2316d948
call fcn.2316c4fc
mov dword [0x231749f8], eax
mov eax, 0x2316d95c
call fcn.2316c4fc
mov dword [0x231749fc], eax
cmp dword [ebx], 0
je 0x2316d816
mov eax, dword [0x231731d4]
call fcn.231539c0
push eax
mov eax, dword [ebx]
add eax, 0x20c
push eax
call sub.kernel32.dll_lstrcpyA
mov eax, dword [ebx]
mov edx, dword [0x23174650]
mov dword [eax + 0x200], edx
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [ebx]
mov dword [edx + 0x208], eax
call sub.kernel32.dll_GetCurrentProcessId
mov edx, dword [ebx]
mov dword [edx + 0x204], eax
cmp byte [0x231749b9], 0
jne 0x2316d6e2
lea eax, [ebp - 0x24]
call fcn.23167558
mov edx, dword [ebp - 0x24]
mov eax, 0x231749cc
call fcn.23153690
mov eax, dword [0x231749cc]
call fcn.231539c0
push eax
mov eax, dword [ebx]
push eax
call sub.kernel32.dll_lstrcpyA
mov edx, 0x231749ec
mov eax, dword [0x231749cc]
call fcn.23167d50
mov dword [0x231749f0], eax
mov eax, dword [0x231749f0]
call fcn.23169074
test al, al
jne 0x2316d689
mov edx, 0x231749ec
mov eax, dword [0x231749d0]
call fcn.23167d50
mov dword [0x231749f0], eax
mov eax, dword [0x231749f0]
call fcn.23169074
test al, al
je 0x2316d816
mov edx, dword [ebx]
mov eax, dword [0x231749ec]
mov dword [edx + 0x218], eax
cmp eax, 0x40000
jae 0x2316d6d8
mov eax, dword [ebx]
add eax, 0x21c
mov edx, 0x40000
call fcn.231541d8
mov eax, dword [ebx]
add eax, 0x21c
mov ecx, dword [0x231749ec]
mov edx, dword [0x231749f0]
call fcn.231541d0
mov eax, dword [0x231749f0]
call fcn.231527f4
mov eax, 0x231749cc
mov edx, dword [ebx]
mov ecx, pe_nt_image_headers32
call fcn.231537a8
mov eax, dword [ebx]
mov eax, dword [eax + 0x218]
mov dword [0x231749ec], eax
lea edx, [ebp - 0x28]
mov eax, 0x2316d970
call fcn.231674dc
mov edx, dword [ebp - 0x28]
mov eax, 0x231749c0
call fcn.23153690
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.23152a7c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.2316724c
mov edx, dword [ebp - 0x2c]
mov eax, 0x231749d4
call fcn.23153690
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.23152a7c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.231671fc
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.23167180
mov edx, dword [ebp - 0x34]
mov eax, 0x231749c4
call fcn.23153690
mov eax, 0x231749d0
mov ecx, 0x2316d984
mov edx, dword [0x231749dc]
call fcn.2315380c
lea edx, [ebp - 0x44]
mov eax, dword [0x231749cc]
call fcn.231671fc
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.23167180
mov edx, dword [ebp - 0x40]
mov eax, 0x231749c8
call fcn.23153690
push 0x2316d998
push dword [0x231749c4]
push 0x2316d9a4
push dword [0x231749c8]
push 0x2316d9b0
push dword [0x231731d4]
push 0x2316d9bc
push 0x2316d9c8
mov eax, 0x231749d8
mov edx, 8
call fcn.23153880
mov eax, dword [ebx]
add eax, 0x21c
call fcn.23169074
test al, al
je 0x2316d7fb
mov eax, dword [ebx]
add eax, 0x21c
mov dword [0x231749f0], eax
jmp 0x2316d80f
mov edx, 0x231749ec
mov eax, dword [0x231749d0]
call fcn.23167d50
mov dword [0x231749f0], eax
mov byte [0x231749bc], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2316d838
lea eax, [ebp - 0x44]
mov edx, 0x11
call fcn.23153660
ret