Function at 0x460900
Capabilities:
Create directory
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4de898
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.004600e0
test al, al
je 0x460948
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.00460400
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.00460510
mov esi, dword [esp + 0x34]
add esp, 4
cmp esi, edi
jg 0x46098b
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.00417ff2
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 0x4609b8
inc eax
mov dword [esp + 0x24], eax
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x28], edi
jg 0x460a75
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 0x4609fc
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 0x460a3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 4
sub ebp, 1
jne 0x460a10
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004b1a6a
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 0x460a9b
cmp eax, dword [esi]
jne 0x460a9b
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x460ad6
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 0x460bfb
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.004b19ed
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x40], 4
push 0x4f65ec
call fcn.004b3310
add esp, 4
push eax
push 0x4f65ec
lea eax, [esp + 0x24]
call fcn.00446332
test ebp, ebp
jl 0x460c00
cmp ebp, dword [esp + 0x30]
jge 0x460c00
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.00446332
mov edi, dword [esp + 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460b84
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x28], eax
cmp eax, 0xb7
je 0x460b95
cmp byte [esp + 0x1b], 0
jne 0x460b95
cmp ebp, 1
jle 0x460b5a
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 0x4609c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4609c9
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x460b95
lea ebx, [esp + 0x1c]
call fcn.0045df80
push 0x4f65ec
call fcn.004b3310
add esp, 4
push eax
push 0x4f65ec
lea eax, [esp + 0x28]
call fcn.00446332
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.00446332
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 0x460be7
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 0x460a73
jmp 0x4609c9
call fcn.004473ca
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]