Function at 0x450d60
Capabilities:
Create directory
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x4c1fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x501344]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00450540
test al, al
jne 0x451086
xor ebx, ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call fcn.00450970
mov edi, dword [esp + 0x2c]
add esp, 4
cmp edi, ebx
jg 0x450dce
push ebx
push ebx
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ebx, dword [esp + 0x24]
mov eax, dword [ebx]
sub eax, 0x10
call fcn.0041f125
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x38], 2
cmp byte [esp + 0x40], 0
lea eax, [edi - 1]
mov dword [esp + 0x20], eax
je 0x450dfb
inc eax
mov dword [esp + 0x20], eax
mov ebp, 1
cmp eax, ebp
jle 0x451015
mov esi, dword [esp + 0x18]
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esi, 0xfffffff0
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x450e33
cmp eax, dword [esi]
jne 0x450e33
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x450e6e
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 0x45109c
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.0049c08a
add esp, 0x10
add edi, 0x10
mov dword [esp + 0x1c], edi
mov byte [esp + 0x38], 4
push 0x4d8c20
call fcn.0049c5d2
add esp, 4
push eax
push 0x4d8c20
lea eax, [esp + 0x24]
call fcn.004390fc
test ebp, ebp
jl 0x4510a1
cmp ebp, dword [esp + 0x28]
jge 0x4510a1
mov eax, dword [ebx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x24]
call fcn.004390fc
mov edi, dword [esp + 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x450fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
je 0x450fb4
cmp ebp, 1
jle 0x450ef2
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [esp + 0x38], 2
lea eax, [edi - 0x10]
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x450f15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450f39
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ebp
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x450f6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub edi, 1
jne 0x450f45
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0049ca67
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
mov esi, dword [esp + 0x44]
test esi, esi
je 0x450fb8
lea ebx, [esp + 0x1c]
call fcn.0044e690
mov ebx, dword [esp + 0x24]
push 0x4d8c20
call fcn.0049c5d2
add esp, 4
push eax
push 0x4d8c20
lea eax, [esp + 0x20]
call fcn.004390fc
mov eax, dword [ebx + ebp*4]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x20]
call fcn.004390fc
mov byte [esp + 0x38], 2
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451006
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
inc ebp
cmp ebp, dword [esp + 0x20]
jl 0x450e08
mov edi, dword [esp + 0x28]
mov byte [esp + 0x38], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ebp, 0xffffffff
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x45103c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x38], ebp
mov esi, ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x38], ebp
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451067
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
sub edi, 1
jne 0x451042
push ebx
call fcn.0049ca67
add esp, 4
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.0043a0ae
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]