Function at 0x475740
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x507508
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x56d078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], dl
mov esi, ecx
call fcn.00474fa0
test al, al
je 0x47578a
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.004750c0
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.004751f0
mov ebx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ebx
test ebx, ebx
jg 0x4757d5
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, 0x523a78
je 0x4757f1
call dword [eax + 0x10]
mov ecx, eax
cmp dword [edi + 0xc], 0
lea eax, [edi + 0xc]
jl 0x475803
cmp ecx, dword [edi]
jne 0x475803
lock inc dword [eax]
jmp 0x475830
mov eax, dword [ecx]
lea esi, [edi + 4]
push 2
push dword [esi]
call dword [eax]
mov edi, eax
test edi, edi
jne 0x475819
call fcn.00406775
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.00406697
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 0x47584a
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 0x475a07
mov ecx, dword [edi - 0x10]
lea esi, [edi - 0x10]
mov eax, dword [ecx]
cmp eax, 0x523a78
je 0x475874
call dword [eax + 0x10]
mov ecx, eax
cmp dword [esi + 0xc], 0
lea eax, [esi + 0xc]
jl 0x475886
cmp ecx, dword [esi]
jne 0x475886
lock inc dword [eax]
jmp 0x4758b7
mov eax, dword [ecx]
push 2
push dword [esi + 4]
call dword [eax]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x475814
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.00406697
mov esi, dword [ebp - 0x28]
add esp, 8
lea eax, [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
push 0x52995c
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push 0x52995c
call fcn.004070e2
test ebx, ebx
js 0x4757c4
cmp ebx, dword [ebp - 0x30]
jge 0x4757c4
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.004070e2
mov esi, dword [ebp - 0x1c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x475972
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x475984
cmp byte [ebp - 0xe], 0
jne 0x475984
cmp ebx, 1
jle 0x475932
lea ecx, [ebp - 0x14]
call fcn.004744b0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4759fe
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x4759fc
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x475a04
mov eax, dword [ebp + 8]
test eax, eax
je 0x475984
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00471ac0
push 0x52995c
call fcn.004d3ded
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push 0x52995c
call fcn.004070e2
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.004070e2
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4759e8
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x4759e6
mov eax, dword [ecx + 4]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call esi
jmp 0x4759ee
call edx
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x475a04
jmp 0x475860
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 0x475a43
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x523a78
jne 0x475a41
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call esi
jmp 0x475a43
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 0x475a8f
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov edi, dword [eax + 4]
cmp eax, 0x523a78
jne 0x475a8b
mov eax, dword [edx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x475a8f
mov ecx, edx
call edi
add esi, 4
sub dword [ebp - 0x24], 1
jne 0x475a50
push dword [ebp - 0x34]
call fcn.004d396c
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