Function at 0x471150
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5066a8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x5651c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov esi, ecx
call fcn.004709b0
test al, al
je 0x47119a
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00470ad0
mov byte [ebp - 0xe], al
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.00470c00
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
test ebx, ebx
jg 0x4711e5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [ebp - 0x34]
mov esi, dword [ecx]
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x51e0b8
je 0x4711fb
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x471211
cmp ecx, dword [esi - 0x10]
jne 0x471211
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x47123c
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x471225
call fcn.004069b7
mov eax, dword [esi - 0xc]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi - 0xc]
inc edx
push edx
push esi
call fcn.004068e0
add esp, 8
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
lea eax, [ebx - 1]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x20], eax
je 0x471256
inc eax
mov dword [ebp - 0x20], eax
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
lea ebx, [ecx + 1]
cmp eax, ebx
jle 0x471416
nop dword [eax]
mov ecx, dword [esi - 0x10]
lea edi, [esi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x51e0b8
je 0x471284
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x471296
cmp ecx, dword [edi]
jne 0x471296
lock inc dword [eax]
jmp 0x4712c7
mov eax, dword [ecx]
push 2
push dword [edi + 4]
call dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x471220
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
lea ecx, [edi + 0x10]
mov edx, dword [edi + 4]
inc edx
push edx
push ecx
lea ecx, [eax + 0x10]
call fcn.004068e0
mov edi, dword [ebp - 0x28]
add esp, 8
lea eax, [edi + 0x10]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 4
push 0x523a24
call fcn.004d828d
add esp, 4
lea ecx, [ebp - 0x18]
push eax
push 0x523a24
call fcn.004072ec
test ebx, ebx
js 0x4711d4
cmp ebx, dword [ebp - 0x30]
jge 0x4711d4
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x18]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004072ec
mov edi, dword [ebp - 0x18]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x471381
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp eax, 0xb7
je 0x471393
cmp byte [ebp - 0xe], 0
jne 0x471393
cmp ebx, 1
jle 0x471341
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47140d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x47140b
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x471413
mov eax, dword [ebp + 8]
test eax, eax
je 0x471393
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.0046daf0
push 0x523a24
call fcn.004d828d
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push 0x523a24
call fcn.004072ec
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
push eax
call fcn.004072ec
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4713f7
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x4713f5
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call edi
jmp 0x4713fd
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x1c]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x471413
jmp 0x471270
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x14]
xor ebx, ebx
cmp ecx, 0xb7
cmovne ebx, ecx
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471452
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x471450
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call edi
jmp 0x471452
call edx
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
nop dword [eax]
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov ecx, dword [esi]
sub ecx, 0x10
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x47149f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x51e0b8
jne 0x47149b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x47149f
mov ecx, edx
call edi
add esi, 4
sub dword [ebp - 0x24], 1
jne 0x471460
push dword [ebp - 0x34]
call fcn.004d7e0d
add esp, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov eax, ebx
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret