Function at 0x4030f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4446e1
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x453ac0]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
push edi
mov eax, dword [0x453ac0]
xor eax, esp
push eax
lea eax, [esp + 0x130]
mov dword fs:[0], eax
push str.C:Naiky_
lea ecx, [esp + 0x14]
call fcn.00408e70
mov dword [esp + 0x138], 0
test byte [0x4593b0], 1
jne 0x403158
or dword [0x4593b0], 1
test byte [0x459090], 1
jne 0x403168
or dword [0x459090], 1
call fcn.00415640
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push eax
push str.D:Naiky_
push 0x4591a0
call edi
push str.config
push 0x4591a0
lea eax, [esp + 0x24]
push eax
call edi
push str.ncstudio.dat
lea ecx, [esp + 0x18]
call fcn.00408e70
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x13c], 1
call fcn.00408e70
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
mov byte [esp + 0x140], 2
call fcn.00404a20
mov byte [esp + 0x138], 1
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 0x4031f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x138], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40321e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0xac]
test eax, eax
lea ebx, [esi + 0xa8]
je 0x403238
mov ecx, dword [ebx + 8]
sub ecx, eax
sar ecx, 2
jne 0x40325c
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4033a0
mov ecx, dword [0x458af8]
mov edi, dword [ecx*4 + 0x455938]
test edi, edi
jne 0x403271
xor eax, eax
jmp 0x403281
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403276
sub eax, edx
push eax
push edi
lea ecx, [esi + 0xa4]
call fcn.00407ed0
mov eax, dword [esi + 0xa4]
push 4
push 0
push eax
mov ecx, esi
call fcn.0041825f
cmp eax, 6
je 0x4032c9
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4033a0
mov eax, 1
test byte [0x459090], al
mov dword [esi + 0x98], eax
jne 0x4032e2
or dword [0x459090], eax
call fcn.00415640
mov edi, eax
test edi, edi
lea ecx, [esi + 0x9c]
jne 0x4032f7
xor edx, edx
jmp 0x40330d
mov edx, edi
lea eax, [edx + 1]
mov dword [esp + 0xc], eax
mov al, byte [edx]
add edx, 1
test al, al
jne 0x403300
sub edx, dword [esp + 0xc]
push edx
push edi
call fcn.004091a0
mov eax, dword [esi + 0xa0]
push eax
call fcn.00404830
mov eax, dword [esi + 0xa0]
add esp, 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [ebx + 4]
cmp edi, dword [ebx + 8]
jbe 0x403340
call fcn.00425859
nop
mov eax, dword [ebx + 8]
cmp dword [ebx + 4], eax
mov dword [esp + 0xc], eax
jbe 0x403351
call fcn.00425859
cmp ebx, ebx
je 0x40335a
call fcn.00425859
cmp edi, dword [esp + 0xc]
je 0x403381
cmp edi, dword [ebx + 8]
jb 0x40336a
call fcn.00425859
push esi
mov ecx, edi
call fcn.00404fe0
cmp edi, dword [ebx + 8]
jb 0x40337c
call fcn.00425859
add edi, 4
jmp 0x403340
mov dword [esp + 0x138], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4033ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00424c71
mov esp, ebp
pop ebp
ret