Function at 0x419550
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 0x419570
push 4
sub esi, ecx
push 0x497248
push ebp
sar esi, 1
call fcn.0044eba3
xor ecx, ecx
add esp, 0xc
test eax, eax
sete cl
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4195e8
cmp esi, 3
jl 0x4195cf
movzx eax, word [ebp]
cmp eax, 0x61
jb 0x4195b1
cmp eax, 0x7a
jbe 0x4195ba
add eax, 0xffffffbf
cmp ax, 0x19
ja 0x4195cf
cmp word [ebp + 2], 0x3a
jne 0x4195cf
movzx eax, word [ebp + 4]
cmp eax, 0x5c
je 0x4195e8
cmp eax, 0x2f
je 0x4195e8
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 [0x4a2e1c]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x419845
push 4
lea esi, [eax + 0x10]
push 0x497218
push esi
call fcn.0044dd23
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 0x419695
mov dword [esp + 0x24], eax
mov eax, edx
mov edx, dword [esp + 0x24]
nop dword [eax]
movzx edi, word [eax]
cmp edi, 0x5c
je 0x419677
cmp edi, 0x2f
je 0x419677
test ebx, ebx
je 0x41966d
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 0x41967c
mov ebx, 1
inc edx
lea eax, [edx*2]
add eax, ebp
cmp word [eax], 0
jne 0x419650
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 0x419709
lea ebx, [edi + 0x5c]
movzx eax, word [edx]
cmp eax, 0x5c
je 0x4196e4
cmp eax, 0x2f
je 0x4196e4
test edi, edi
je 0x4196da
mov word [esi + ecx*2], bx
inc ecx
xor edi, edi
mov ax, word [edx]
mov word [esi + ecx*2], ax
inc ecx
jmp 0x4196e9
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 0x4196c2
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov edx, ecx
sub edx, eax
cmp edx, 2
jne 0x419721
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 0x41977a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [edx + 0xf0], eax
call fcn.0041c770
or ebp, 0xffffffff
jmp 0x4197d6
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 0x4197bf
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 0x419813
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov dword [edx + 0xf0], eax
call fcn.0041c770
mov dword [edx + 0x48], eax
call fcn.0044c2cd
push ebx
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
mov dword [eax], esi
cmp ebp, 0xffffffff
je 0x4197fd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x20], 0
je 0x41983d
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 [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0044c2cd
push ebx
mov esi, dword [eax]
call dword [0x4a2e28]
add esp, 4
call fcn.0044c2cd
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.0041c6e0
int3