Function at 0x460c40
Capabilities:
Create directory
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4deec8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52472c]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00460420
test al, al
je 0x460c88
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
mov eax, esi
call fcn.00460740
xor edi, edi
mov byte [esp + 0x1b], al
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x40], edi
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00460850
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
jg 0x460ccb
push edi
push edi
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
sub eax, 0x10
call fcn.00418037
lea ebx, [eax + 0x10]
mov dword [esp + 0x20], ebx
mov byte [esp + 0x40], 2
cmp byte [esp + 0x48], 0
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
je 0x460cf8
inc eax
mov dword [esp + 0x24], eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x28], edi
jg 0x460db5
mov eax, dword [esp + 0x28]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
and esi, eax
mov byte [esp + 0x40], 0
lea eax, [ebx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460d3c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x40], 0xffffffff
mov edi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
lea esp, [esp]
mov dword [esp + 0x28], edi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [edi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
sub ebp, 1
jne 0x460d50
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004b20aa
add esp, 4
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
xor edi, edi
mov ecx, dword [ebx - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
lea esi, [ebx - 0x10]
call eax
cmp dword [esi + 0xc], edi
lea ecx, [esi + 0xc]
jl 0x460ddb
cmp eax, dword [esi]
jne 0x460ddb
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x460e16
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x460f3b
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
lea ecx, [eax + eax + 2]
push ecx
add esi, 0x10
lea edx, [eax + eax + 2]
push esi
push edx
lea eax, [edi + 0x10]
push eax
call fcn.004b202d
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x40], 4
push 0x4f6654
call fcn.004b3950
add esp, 4
push eax
push 0x4f6654
lea eax, [esp + 0x24]
call fcn.0044678f
test ebp, ebp
jl 0x460f40
cmp ebp, dword [esp + 0x30]
jge 0x460f40
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
call fcn.0044678f
mov edi, dword [esp + 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
cmp eax, 0xb7
je 0x460ed5
cmp byte [esp + 0x1b], 0
jne 0x460ed5
cmp ebp, 1
jle 0x460e9a
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x40], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460d09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x460d09
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x460ed5
lea ebx, [esp + 0x1c]
call fcn.0045e2c0
push 0x4f6654
call fcn.004b3950
add esp, 4
push eax
push 0x4f6654
lea eax, [esp + 0x28]
call fcn.0044678f
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x28]
call fcn.0044678f
mov byte [esp + 0x40], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x460f27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
inc ebp
cmp ebp, dword [esp + 0x24]
jl 0x460db3
jmp 0x460d09
call fcn.00447844
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]