Function at 0x4036f2
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x17c
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x18], esi
mov ebx, 0x40a710
mov byte [esp + 0x10], 0x20
call dword [0x408030]
push esi
call dword [0x40827c]
mov dword [0x426bd0], eax
push esi
lea eax, [esp + 0x30]
push 0x160
push eax
push esi
push 0x4214b8
call dword [0x408158]
push 0x40a834
push 0x426320
call fcn.004060b6
mov ebp, 0x42d400
push ebp
push 0x400
call dword [0x4080b8]
call fcn.004036be
test eax, eax
jne 0x403782
push 0x3fb
push ebp
call dword [0x4080b4]
push 0x40a82c
push ebp
call fcn.004060d2
call fcn.004036be
test eax, eax
je 0x4038c5
mov edi, 0x42c000
push edi
call dword [0x408140]
call dword [0x4080b0]
push eax
push edi
call fcn.004060b6
push 0
call dword [0x408108]
cmp byte [0x42c000], 0x22
mov dword [0x426b20], eax
mov eax, edi
jne 0x4037bd
mov byte [esp + 0x10], 0x22
mov eax, 0x42c001
push dword [esp + 0x10]
push eax
call fcn.00405bd4
push eax
call dword [0x408220]
mov dword [esp + 0x14], eax
jmp 0x403837
cmp cl, 0x20
jne 0x4037df
inc eax
cmp byte [eax], 0x20
je 0x4037d9
cmp byte [eax], 0x22
mov byte [esp + 0x10], 0x20
jne 0x4037ef
inc eax
mov byte [esp + 0x10], 0x22
cmp byte [eax], 0x2f
jne 0x403827
inc eax
cmp byte [eax], 0x53
jne 0x403808
mov cl, byte [eax + 1]
or cl, 0x20
cmp cl, 0x20
jne 0x403808
or esi, 2
cmp dword [eax], 0x4352434e
jne 0x40381e
mov cl, byte [eax + 4]
or cl, 0x20
cmp cl, 0x20
jne 0x40381e
or esi, 4
cmp dword [eax - 2], 0x3d442f20
je 0x40383f
push dword [esp + 0x10]
push eax
call fcn.00405bd4
cmp byte [eax], 0x22
jne 0x403837
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4037d4
jmp 0x403851
and byte [eax - 2], 0
add eax, 2
push eax
push 0x42c400
call fcn.004060b6
push esi
call fcn.00403077
mov ebx, eax
test ebx, ebx
jne 0x4038c5
cmp dword [0x426b34], eax
je 0x4038ae
push eax
push edi
call fcn.00405bd4
mov esi, eax
jmp 0x403879
cmp dword [esi], 0x3d3f5f20
je 0x40387d
dec esi
cmp esi, edi
jae 0x403870
cmp esi, edi
mov ebx, 0x40a770
jb 0x4038eb
and byte [esi], 0
add esi, 4
push esi
call fcn.00405c89
test eax, eax
je 0x4038c5
push esi
push 0x42c400
call fcn.004060b6
push esi
push 0x42c800
call fcn.004060b6
xor ebx, ebx
or dword [0x426bcc], 0xffffffff
call fcn.00403b0e
push 1
mov dword [esp + 0x1c], eax
call fcn.0040638b
call 0x403ab0
call dword [0x408280]
test ebx, ebx
je 0x4039fd
push 0x200010
push ebx
call fcn.0040594e
push 2
call dword [0x4080ac]
push 0x40a820
push ebp
call fcn.004060d2
push 0
push ebp
call dword [0x408088]
and dword [esp + 0x10], 0
mov esi, 0x4208b8
mov edi, 0x4210b8
push ebp
push esi
mov word [0x4208b8], 0x22
call fcn.004060d2
push 0x40a7a4
push esi
call fcn.004060d2
push 0x4208b9
call dword [0x408140]
test ebx, ebx
je 0x4039e3
push 0x400
push edi
push dword [0x426b20]
call dword [0x40809c]
lea eax, [eax + 0x4210b2]
push 0x40a7a5
push eax
call dword [0x4080a4]
test eax, eax
je 0x4038c5
push 0
push 0x4208b9
push edi
call dword [0x4080a8]
test eax, eax
je 0x4039e3
push 0
push 0x4208b9
call fcn.00405e03
cmp byte [0x42c400], 0
je 0x40399c
push 0x42c400
push edi
call fcn.004060b6
jmp 0x4039a2
push edi
call fcn.00405bf0
push 0x40a81c
push esi
call fcn.004060d2
push dword [esp + 0x14]
push esi
call fcn.004060d2
push 0x40a814
push esi
call fcn.004060d2
push edi
push esi
call fcn.004060d2
push esi
call fcn.00405ba9
push ebp
push esi
call fcn.004058d6
test eax, eax
je 0x4039e3
push eax
call dword [0x408060]
xor ebx, ebx
inc byte [0x40a7a4]
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1a
jl 0x40390e
jmp 0x4038c5
cmp dword [0x426bb4], 0
je 0x403a98
mov esi, 0x40a804
push 0x40a7f0
push esi
call fcn.00406576
push 0x40a7d8
push esi
mov ebp, eax
call fcn.00406576
push 0x40a7c0
push esi
mov edi, eax
call fcn.00406576
xor esi, esi
mov ebx, eax
cmp ebp, esi
je 0x403a84
cmp edi, esi
je 0x403a84
cmp ebx, esi
je 0x403a84
lea eax, [esp + 0x14]
push eax
push 0x28
call dword [0x408144]
push eax
call ebp
test eax, eax
je 0x403a84
lea eax, [esp + 0x20]
push eax
push 0x40a7ac
push esi
call edi
push esi
push esi
lea eax, [esp + 0x24]
push esi
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x34], 1
mov dword [esp + 0x40], 2
call ebx
push esi
push 2
call dword [0x408228]
test eax, eax
jne 0x403a98
push 9
call fcn.00401410
mov eax, dword [0x426bcc]
cmp eax, 0xffffffff
je 0x403aa6
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
call dword [0x4080ac]
mov eax, dword [0x40a5c4]
push esi
mov esi, dword [0x408060]
cmp eax, 0xffffffff
je 0x403acb
push eax
call esi
or dword [0x40a5c4], 0xffffffff
mov eax, dword [0x40a5c8]
cmp eax, 0xffffffff
je 0x403adf
push eax
call esi
or dword [0x40a5c8], 0xffffffff
push 7
push 0x42d800
call fcn.00405990
pop esi
ret