Function at 0x477280
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e520d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x860
mov eax, dword [0x51c100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], edx
mov edi, ecx
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x85c], eax
test esi, esi
jg 0x477479
cmp dword [edi + 0x14], 8
jb 0x4772e2
mov ecx, dword [edi]
xor edx, edx
call fcn.0046dbf0
test eax, eax
js 0x477472
test esi, esi
je 0x47746b
mov ecx, dword [ebp - 0x85c]
xor esi, esi
test ecx, ecx
je 0x4773d0
mov eax, dword [0x51cbc4]
test eax, eax
jns 0x47732a
call fcn.0047dcb0
mov ecx, dword [ebp - 0x85c]
neg eax
sbb eax, eax
neg eax
mov dword [0x51cbc4], eax
test eax, eax
jle 0x4773d0
lea eax, [ebp - 0x18]
xor esi, esi
push eax
lea eax, [ebp - 0x85c]
mov dword [ebp - 0x85c], esi
push eax
push 1
push ecx
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x4773ba
cmp dword [ebp - 0x18], 0x800
ja 0x4773a7
push 0x820
lea eax, [ebp - 0x858]
push esi
push eax
call fcn.004a3580
add esp, 0xc
lea eax, [ebp - 0x858]
push dword [ebp - 0x18]
push dword [ebp - 0x85c]
push eax
call fcn.004a3000
add esp, 0xc
mov dword [ebp - 0x58], 0xc
lea eax, [ebp - 0x858]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x85c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4773c2
push dword [ebp - 0x85c]
mov esi, 0x7a
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x4773c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x47746b
lea esi, [ebp - 0x858]
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x868], edi
jb 0x4773e4
mov eax, dword [edi]
mov dword [ebp - 0x868], eax
mov eax, dword [0x523994]
mov dword [ebp - 0x86c], 1
mov dword [ebp - 0x864], eax
test eax, eax
je 0x477413
push 0
mov ecx, eax
call dword [0x4e933c]
call dword [ebp - 0x864]
mov dword [ebp - 0x86c], eax
lea ecx, [esi + 0x800]
neg esi
sbb esi, esi
and esi, ecx
push esi
push dword [ebp - 0x868]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x477436
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x523994]
test esi, esi
je 0x477450
push dword [ebp - 0x86c]
mov ecx, esi
call dword [0x4e933c]
call esi
cmp dword [edi + 0x14], 8
jb 0x477458
mov edi, dword [edi]
xor edx, edx
mov ecx, edi
call fcn.0046dbf0
test eax, eax
sets al
jmp 0x4775c0
xor al, al
jmp 0x4775c0
mov al, 1
jmp 0x4775c0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x34], xmm0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 4], 2
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov dword [ebp - 4], 3
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x85c], eax
cmp ecx, edi
je 0x477547
nop dword [eax + eax]
cmp dword [edx + eax*4], 0
lea ecx, [edx + eax*4]
mov dword [ebp - 0x864], ecx
je 0x477538
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4774f9
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x34]
push eax
call fcn.0040a190
mov eax, dword [ebp - 0x864]
push ecx
lea ecx, [ebp - 0x34]
push dword [eax]
call fcn.0047e960
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov edx, 1
cmovae ecx, dword [ebp - 0x34]
call fcn.0046dbf0
mov edx, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 0x85c]
je 0x477539
dec esi
inc eax
mov dword [ebp - 0x85c], eax
cmp eax, dword [ebx + 8]
jl 0x4774e0
jmp 0x477584
xor edi, edi
nop dword [eax]
mov eax, dword [edx + edi*4]
test eax, eax
je 0x47757d
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.0047e960
cmp dword [ebp - 0x20], 8
lea ecx, [ebp - 0x34]
mov edx, 1
cmovae ecx, dword [ebp - 0x34]
call fcn.0046dbf0
mov edx, dword [ebp - 0x18]
test eax, eax
je 0x47757e
dec esi
inc edi
cmp edi, dword [ebx + 8]
jl 0x477550
test esi, esi
sete byte [ebp - 0x85d]
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4775a4
push eax
call fcn.004a05f1
add esp, 4
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x34]
call fcn.0040a590
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x85d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a057b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret