Function at 0x47d0f0
Capabilities:
Create directory
Delete directory

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov ebp, edx
mov dword [esp + 0x1c], 0
mov esi, ebp
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d110
push 4
sub esi, ecx
push 0x4fde10
push ebp
sar esi, 1
call fcn.004ab684
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [esp + 0x18], ecx
test eax, eax
je 0x47d188
cmp esi, 3
jl 0x47d16f
movzx eax, word [ebp]
cmp eax, 0x61
jb 0x47d151
cmp eax, 0x7a
jbe 0x47d15a
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x47d16f
cmp word [ebp + 2], 0x3a
jne 0x47d16f
movzx eax, word [ebp + 4]
cmp eax, 0x5c
je 0x47d188
cmp eax, 0x2f
je 0x47d188
mov dword [ebx + 0x48], 0xfffff019
mov dword [ebx + 0xf0], 0x32
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
lea eax, [esi*4 + 0x20]
push eax
call dword [0x50bacc]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x47d3e5
push 4
lea esi, [eax + 0x10]
push 0x4fdde0
push esi
call fcn.004aa804
mov eax, dword [esp + 0x24]
mov ecx, 4
shl eax, 2
xor ebx, ebx
add esp, 0xc
mov dword [esp + 0x18], eax
lea edi, [ecx + 0x58]
lea edx, [eax*2]
add edx, ebp
mov dword [esp + 0x28], edx
cmp word [edx], bx
je 0x47d235
mov dword [esp + 0x24], eax
mov eax, edx
mov edx, dword [esp + 0x24]
nop dword [eax]
movzx edi, word [eax]
cmp edi, 0x5c
je 0x47d217
cmp edi, 0x2f
je 0x47d217
test ebx, ebx
je 0x47d20d
mov ebx, 0x5c
mov word [esi + ecx*2], bx
inc ecx
xor ebx, ebx
mov ax, word [eax]
mov word [esi + ecx*2], ax
inc ecx
jmp 0x47d21c
mov ebx, 1
inc edx
lea eax, [edx*2]
add eax, ebp
cmp word [eax], 0
jne 0x47d1f0
mov edx, dword [esp + 0x28]
mov edi, 0x5c
mov ebx, dword [esp + 0x1c]
xor eax, eax
mov word [esi + ecx*2], di
inc ecx
xor edi, edi
mov word [ebx + 8], ax
lea eax, [ecx + ecx]
mov word [ebx + 0xa], ax
xor eax, eax
mov word [esi + ecx*2], ax
inc ecx
mov eax, ecx
mov dword [esp + 0x28], eax
cmp word [edx], di
je 0x47d2a9
lea ebx, [edi + 0x5c]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x47d284
cmp eax, 0x2f
je 0x47d284
test edi, edi
je 0x47d27a
mov word [esi + ecx*2], bx
inc ecx
xor edi, edi
mov ax, word [edx]
mov word [esi + ecx*2], ax
inc ecx
jmp 0x47d289
mov edi, 1
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
lea edx, [eax*2]
add edx, ebp
cmp word [edx], 0
jne 0x47d262
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, ecx
sub edx, eax
cmp edx, 2
jne 0x47d2c1
mov edx, 0x5c
mov word [esi + ecx*2], dx
inc ecx
mov edx, 3
mov edi, dword [esp + 0x34]
add eax, eax
mov word [ebx + 0xc], ax
lea eax, [edx + edx]
mov word [ebx + 0xe], ax
xor eax, eax
mov word [esi + ecx*2], ax
lea esi, [ecx*2 + 0x12]
lea eax, [esi - 8]
mov dword [ebx], 0xa0000003
mov word [ebx + 4], ax
xor eax, eax
push eax
push edi
mov word [ebx + 6], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47d31a
call dword [0x4eb0cc]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [edx + 0xf0], eax
call fcn.004822d0
or ebp, 0xffffffff
jmp 0x47d376
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x47d35f
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0
push esi
push ebx
push 0x900a4
push ebp
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x47d3b3
call dword [0x4eb0cc]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [edx + 0xf0], eax
call fcn.004822d0
mov dword [edx + 0x48], eax
call fcn.004a905f
push ebx
mov esi, dword [eax]
call dword [0x50bad8]
add esp, 4
call fcn.004a905f
mov dword [eax], esi
cmp ebp, 0xffffffff
je 0x47d39d
push ebp
call dword [0x4eb070]
cmp dword [esp + 0x20], 0
je 0x47d3dd
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
push ebp
call dword [0x4eb070]
call fcn.004a905f
push ebx
mov esi, dword [eax]
call dword [0x50bad8]
add esp, 4
call fcn.004a905f
mov edx, dword [esp + 0x14]
mov dword [eax], esi
mov dword [edx + 0x48], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov edx, str.uv__malloc
mov ecx, 0xe
call fcn.00482240
int3