Function at 0x47abb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x515a40
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x57c080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bl, dl
mov esi, ecx
call fcn.0047a2b0
test al, al
je 0x47abf9
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 0x47ac35
test ecx, ecx
js 0x47af9b
cmp word [edx], 0x5c
jne 0x47ac35
cmp ecx, 1
jl 0x47af9b
cmp word [edx + 2], 0x5c
jne 0x47ac35
cmp ecx, 2
jl 0x47af9b
cmp word [edx + 4], 0x3f
mov byte [ebp - 0xd], 1
jne 0x47ac39
mov byte [ebp - 0xd], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x44]
call fcn.0047a550
mov esi, dword [ebp - 0x40]
test esi, esi
jle 0x47af84
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.004070e1
lea edi, [eax + 0x10]
mov dword [ebp - 0x14], edi
mov byte [ebp - 4], 2
lea eax, [esi - 1]
test bl, bl
mov dword [ebp - 0x20], 1
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [eax + 1]
cmove ecx, eax
xor eax, eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x1c], eax
cmp ecx, 1
jle 0x47af2a
nop word [eax + eax]
lea ecx, [edi - 0x10]
call fcn.004070e1
lea esi, [eax + 0x10]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 4
push 0x539998
call fcn.004e0c26
mov ebx, dword [esi - 0xc]
mov ecx, eax
mov eax, 0x539998
mov dword [ebp - 0x30], 0x539998
sub eax, esi
mov dword [ebp - 0x28], ebx
sar eax, 1
add esp, 4
mov dword [ebp - 0x2c], eax
test ecx, ecx
js 0x47af9b
push ecx
push 0x539998
call fcn.004e3907
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x24], edx
add esp, 8
cmp ecx, ebx
jl 0x47af9b
add ebx, edx
js 0x47af9b
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, ebx
or eax, ecx
jge 0x47ad3c
push ebx
lea ecx, [ebp - 0x18]
call fcn.0040d70c
mov esi, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
lea ecx, [esi + ecx*2]
jbe 0x47ad4c
mov ecx, dword [ebp - 0x30]
add edx, edx
push edx
push ecx
lea ecx, [esi + eax*2]
call fcn.0040d7e5
add esp, 8
cmp ebx, dword [esi - 8]
jg 0x47af9b
xor eax, eax
mov dword [esi - 0xc], ebx
mov word [esi + ebx*2], ax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
js 0x47af84
cmp ebx, dword [ebp - 0x40]
jge 0x47af84
mov eax, dword [ebp - 0x44]
lea ecx, [ebp - 0x18]
lea eax, [eax + ebx*4]
mov dword [ebp - 0x34], eax
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00410f3f
mov esi, dword [ebp - 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47ae0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
cmp eax, 0xb7
je 0x47ae1d
cmp byte [ebp - 0xd], 0
jne 0x47ae1d
cmp ebx, 1
jle 0x47adcb
lea ecx, [ebp - 0x14]
call fcn.004793f0
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47af21
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47af97
mov eax, dword [ecx + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [eax + 4]
call ebx
jmp 0x47af27
mov eax, dword [ebp + 8]
test eax, eax
je 0x47ae1d
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.00470350
push 0x539998
call fcn.004e0c26
mov ebx, dword [edi - 0xc]
mov ecx, eax
mov eax, 0x539998
mov dword [ebp - 0x24], 0x539998
sub eax, edi
mov dword [ebp - 0x28], ebx
sar eax, 1
add esp, 4
mov dword [ebp - 0x2c], eax
test ecx, ecx
js 0x47af9b
push ecx
push 0x539998
call fcn.004e3907
mov edx, eax
mov ecx, 0x7fffffff
sub ecx, edx
mov dword [ebp - 0x30], edx
add esp, 8
cmp ecx, ebx
jl 0x47af9b
add ebx, edx
js 0x47af9b
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x47ae97
push ebx
lea ecx, [ebp - 0x14]
call fcn.0040d70c
mov edi, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
cmp eax, ecx
lea eax, [edi + eax*2]
jbe 0x47aea7
mov eax, dword [ebp - 0x24]
add edx, edx
lea ecx, [edi + ecx*2]
push edx
push eax
call fcn.0040d7e5
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x47af9b
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.00410f3f
mov byte [ebp - 4], 2
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47af0e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47af90
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x14]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, dword [ebp - 0x38]
jl 0x47acb0
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x1c]
xor esi, esi
cmp eax, 0xb7
cmovne esi, eax
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47af61
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, 0x534850
jne 0x47afa5
mov eax, dword [ecx + 4]
push 0
push dword [eax + 4]
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.004571eb
mov eax, esi
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 1
push 0xc000008c
call fcn.00409ed4
call edx
jmp 0x47af0e
call edx
jmp 0x47af21
push 0x80070057
call fcn.0040d86a
call edx
jmp 0x47af61