Function at 0x475160
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504da8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x569078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov esi, ecx
call fcn.004749c0
test al, al
je 0x4751aa
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.00474ae0
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.00474c10
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
test ebx, ebx
jg 0x4751f5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov ecx, dword [eax - 0x10]
mov dword [ebp - 0x20], eax
lea edi, [eax - 0x10]
mov eax, dword [ecx]
cmp eax, 0x5209f4
je 0x475211
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x475223
cmp ecx, dword [edi]
jne 0x475223
lock inc dword [eax]
jmp 0x475250
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x475239
call fcn.0040676e
mov eax, dword [esi]
lea ecx, [edi + 0x10]
mov dword [edi + 4], eax
mov edx, dword [esi]
inc edx
push edx
push dword [ebp - 0x20]
call fcn.00406690
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 0x47526a
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 0x475427
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x5209f4
je 0x475294
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x4752a6
cmp ecx, dword [esi]
jne 0x4752a6
lock inc dword [eax]
jmp 0x4752d7
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x475234
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.00406690
mov esi, dword [ebp - 0x28]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
push 0x52686c
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push 0x52686c
call fcn.00407092
test ebx, ebx
js 0x4751e4
cmp ebx, dword [ebp - 0x30]
jge 0x4751e4
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00407092
mov esi, dword [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x475392
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x4753a4
cmp byte [ebp - 0xe], 0
jne 0x4753a4
cmp ebx, 1
jle 0x475352
lea ecx, [ebp - 0x14]
call fcn.00473ed0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47541e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x47541c
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x475424
mov eax, dword [ebp + 8]
test eax, eax
je 0x4753a4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004717c0
push 0x52686c
call fcn.004d163d
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push 0x52686c
call fcn.00407092
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00407092
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x475408
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x475406
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x47540e
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x475424
jmp 0x475280
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 0x475463
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x475461
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x475463
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 0x4754af
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x5209f4
jne 0x4754ab
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4754af
mov ecx, edx
call edi
add esi, 4
sub dword [ebp - 0x24], 1
jne 0x475470
push dword [ebp - 0x34]
call fcn.004d11bc
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