Function at 0x4065d0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x42fa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
xor cl, cl
mov byte [esp + 0xb], cl
cmp eax, ebx
je 0x406802
cmp dword [esi + 0x2c], ebx
je 0x406802
cmp eax, ebx
jbe 0x406638
lea esp, [esp]
mov eax, dword [esi + 0x10]
mov cl, byte [eax]
dec dword [esi + 0x14]
inc eax
mov byte [esp + 0xc], cl
cmp cl, bl
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
je 0x40664b
mov eax, dword [esp + 0xc]
push eax
push 1
call fcn.00405a00
cmp dword [esi + 0x14], ebx
ja 0x406610
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
push ebp
mov ebp, 0x10
cmp dword [ecx + 0x18], ebp
jb 0x40665b
mov eax, dword [ecx + 4]
jmp 0x40665e
lea eax, [ecx + 4]
movsx eax, byte [eax]
sub eax, 0x44
je 0x4066d5
sub eax, 2
jne 0x4067ec
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x54]
push edx
call fcn.00405b50
mov dword [esp + 0x70], ebx
cmp dword [eax + 0x18], ebp
jb 0x40668b
mov eax, dword [eax + 4]
jmp 0x40668e
add eax, 4
push ebx
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 7
call fcn.004051d0
cmp dword [esp + 0x64], ebp
jb 0x4066b0
mov ecx, dword [esp + 0x50]
push ecx
call fcn.0040c931
add esp, 4
pop ebp
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], 2
mov byte [esp + 0xb], 1
mov al, byte [esp + 0xb]
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
push edi
push 0xffffffffffffffff
push 1
lea edx, [esp + 0x20]
push edx
mov dword [esi + 0x40], ebx
call fcn.00405b50
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x38]
push 0x4320e4
push ecx
mov dword [esp + 0x80], 1
call fcn.00406520
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [esp + 0x80], 2
call fcn.00406400
mov byte [esp + 0x74], 1
cmp dword [esp + 0x4c], ebp
jb 0x406737
mov edx, dword [esp + 0x38]
push edx
call fcn.0040c931
add esp, 4
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
cmp dword [edi + 0x18], ebp
jb 0x406751
mov eax, dword [edi + 4]
jmp 0x406754
lea eax, [edi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4067b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4067b6
cmp dword [edi + 0x18], ebp
jb 0x406777
mov edi, dword [edi + 4]
jmp 0x40677a
add edi, 4
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ebx
push edi
push 0x2717
call fcn.004051d0
cmp dword [esp + 0x30], ebp
jb 0x4067eb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040c931
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], ebp
jae 0x4067c4
lea eax, [esp + 0x1c]
mov edx, dword [esi + 4]
mov ecx, dword [edx + 4]
push ebx
push eax
push 0xc
call fcn.004051d0
mov byte [esp + 0x13], 1
cmp dword [esp + 0x30], ebp
jb 0x4067eb
mov eax, dword [esp + 0x1c]
push eax
call fcn.0040c931
add esp, 4
pop edi
mov al, byte [esp + 0xf]
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
add esp, 0x68
ret
mov al, cl
mov ecx, dword [esp + 0x64]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret