Function at 0x471b90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5090d8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x56a078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov esi, ecx
call fcn.004713f0
test al, al
je 0x471bda
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.00471510
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.00471640
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
test ebx, ebx
jg 0x471c25
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, 0x523a98
je 0x471c3b
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi - 4], 0
lea eax, [esi - 4]
jl 0x471c51
cmp ecx, dword [esi - 0x10]
jne 0x471c51
lea edi, [esi - 0x10]
lock inc dword [eax]
jmp 0x471c7c
mov eax, dword [ecx]
push 2
push dword [esi - 0xc]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x471c65
call fcn.00406997
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.004068c0
add esp, 8
add edi, 0x10
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea eax, [ebx - 1]
cmp byte [ebp - 0xd], 0
mov dword [ebp - 0x20], eax
je 0x471c96
inc eax
mov dword [ebp - 0x20], eax
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea ebx, [ecx + 1]
cmp eax, ebx
jle 0x471e57
nop dword [eax]
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x523a98
je 0x471cc4
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x471cd6
cmp ecx, dword [esi]
jne 0x471cd6
lock inc dword [eax]
jmp 0x471d07
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x471c60
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
lea ecx, [esi + 0x10]
mov edx, dword [esi + 4]
inc edx
push edx
push ecx
lea ecx, [eax + 0x10]
call fcn.004068c0
mov esi, dword [ebp - 0x28]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
push 0x52940c
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push 0x52940c
call fcn.004072c9
test ebx, ebx
js 0x471c14
cmp ebx, dword [ebp - 0x30]
jge 0x471c14
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004072c9
mov esi, dword [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x471dc2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x471dd4
cmp byte [ebp - 0xe], 0
jne 0x471dd4
cmp ebx, 1
jle 0x471d82
lea ecx, [ebp - 0x14]
call fcn.004708c0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471e4e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x471e4c
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x471e54
mov eax, dword [ebp + 8]
test eax, eax
je 0x471dd4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0046e350
push 0x52940c
call fcn.004d635d
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push 0x52940c
call fcn.004072c9
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.004072c9
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x471e38
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x471e36
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x471e3e
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x471e54
jmp 0x471cb0
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0x18]
xor ebx, ebx
cmp ecx, 0xb7
cmovne ebx, ecx
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x471e93
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a98
jne 0x471e91
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x471e93
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 0x471edf
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x523a98
jne 0x471edb
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x471edf
mov ecx, edx
call edi
add esi, 4
sub dword [ebp - 0x24], 1
jne 0x471ea0
push dword [ebp - 0x34]
call fcn.004d5edc
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