Function at 0x47aed0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5158a0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x57d074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
call fcn.0047a680
test al, al
je 0x47af19
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 edx, dword [esi]
mov ecx, dword [edx - 0xc]
cmp ecx, 3
jl 0x47af55
test ecx, ecx
js 0x47b16d
cmp word [edx], 0x5c
jne 0x47af55
cmp ecx, 1
jl 0x47b177
cmp word [edx + 2], 0x5c
jne 0x47af55
cmp ecx, 2
jl 0x47b181
cmp word [edx + 4], 0x3f
mov byte [ebp - 0xd], 1
jne 0x47af59
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.0047a900
mov edi, dword [ebp - 0x28]
test edi, edi
jle 0x47b18b
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00406f9b
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov byte [ebp - 4], 2
lea eax, [edi - 1]
test bl, bl
lea ecx, [eax + 1]
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
lea ebx, [eax + 1]
cmp ecx, ebx
jle 0x47b10d
nop
lea ecx, [esi - 0x10]
call fcn.00406f9b
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 4
push 0x5397c4
call fcn.004e07a4
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push 0x5397c4
call fcn.00410e44
test ebx, ebx
js 0x47b18b
cmp ebx, edi
jge 0x47b18b
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
push dword [eax - 0xc]
push eax
call fcn.00410e44
mov edi, dword [ebp - 0x1c]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47b085
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0xb7
je 0x47b097
cmp byte [ebp - 0xd], 0
jne 0x47b097
cmp ebx, 1
jle 0x47b042
lea ecx, [ebp - 0x14]
call fcn.004797c0
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47b10a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47b19e
mov eax, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
mov eax, dword [ebp - 0x18]
jmp 0x47b113
mov eax, dword [ebp + 8]
test eax, eax
je 0x47b097
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00470830
push 0x5397c4
call fcn.004e07a4
add esp, 4
lea ecx, [ebp - 0x14]
push eax
push 0x5397c4
call fcn.00410e44
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + ebx*4]
lea ecx, [ebp - 0x14]
push dword [eax - 0xc]
push eax
call fcn.00410e44
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47b0f9
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47b197
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x14]
inc ebx
cmp ebx, dword [ebp - 0x20]
jge 0x47b10a
mov edi, dword [ebp - 0x28]
jmp 0x47afc0
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
xor edi, edi
cmp eax, 0xb7
cmovne edi, eax
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47b14a
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47b1a5
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00455f07
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040d795
push 0x80070057
call fcn.0040d795
push 0x80070057
call fcn.0040d795
push 1
push 0xc000008c
call fcn.00409de6
call edx
jmp 0x47b0f9
call edx
jmp 0x47b10a
call edx
jmp 0x47b14a