Function at 0x476210
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fff1
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x4d33a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.0043f1ab
movzx eax, al
test eax, eax
jne 0x476266
mov ecx, dword [ebp + 8]
call fcn.00438d2e
cmp eax, 3
jb 0x476266
push 1
mov ecx, dword [ebp + 8]
call fcn.00478940
movzx ecx, word [eax]
cmp ecx, 0x3a
je 0x47626d
xor eax, eax
jmp 0x47646d
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00439ff6
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00438d2e
sub eax, 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00478940
mov ax, word [eax]
mov word [ebp - 0x3c], ax
movzx ecx, word [ebp - 0x3c]
cmp ecx, 0x5c
je 0x4762b7
movzx edx, word [ebp - 0x3c]
cmp edx, 0x2f
je 0x4762b7
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00442b42
push 0
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00478990
mov dword [ebp - 0x44], eax
push 0
push 0x2f
lea ecx, [ebp - 0x2c]
call fcn.00478990
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x44]
cmp eax, dword [0x4b34f4]
jne 0x4762e7
mov dword [ebp - 0x44], 0xffffffff
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [0x4b34f4]
jne 0x4762f9
mov dword [ebp - 0x30], 0xffffffff
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x30]
jae 0x476309
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x7c], eax
jmp 0x47630f
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x7c], ecx
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0xffffffff
jne 0x476339
mov dword [ebp - 0x74], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042aec4
mov eax, dword [ebp - 0x74]
jmp 0x47646d
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [0x4b34f4]
je 0x476455
mov edx, dword [ebp - 0x38]
push edx
push 0
lea eax, [ebp - 0x60]
push eax
mov ecx, dword [ebp + 8]
call fcn.0043a39e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.0042ab8b
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4763c2
push 0
lea ecx, [ebp - 0x60]
call fcn.0042ab8b
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
jne 0x4763c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xb7
je 0x4763c2
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0042aec4
jmp 0x476455
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
add edx, 1
push edx
push 0x5c
lea ecx, [ebp - 0x2c]
call fcn.00478990
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x40]
add eax, 1
push eax
push 0x2f
lea ecx, [ebp - 0x2c]
call fcn.00478990
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x68]
cmp ecx, dword [0x4b34f4]
jne 0x476402
mov dword [ebp - 0x68], 0xffffffff
mov edx, dword [ebp - 0x64]
cmp edx, dword [0x4b34f4]
jne 0x476414
mov dword [ebp - 0x64], 0xffffffff
mov eax, dword [ebp - 0x68]
cmp eax, dword [ebp - 0x64]
jae 0x476424
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x80], ecx
jmp 0x47642a
mov edx, dword [ebp - 0x64]
mov dword [ebp - 0x80], edx
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0xffffffff
jne 0x476444
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0042aec4
jmp 0x476455
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.0042aec4
jmp 0x476346
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042aec4
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048638c
mov esp, ebp
pop ebp
ret