Function at 0x519cf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61ef0d
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x653af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x10], 0
jne 0x519d47
test esi, esi
je 0x519fd3
call fcn.00515fb0
mov dword [esi + 4], eax
xor al, al
mov dword [esi], 0x16
jmp 0x519fb7
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.005180d0
cmp dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
jne 0x519d71
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x2e
jne 0x519d71
mov bl, 1
jmp 0x519d73
xor bl, bl
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x519d8c
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.004c2530
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x519f7b
mov eax, dword [edi + 0x10]
cmp eax, 2
jb 0x519dfa
mov ecx, dword [edi + 0x14]
mov edx, edi
cmp ecx, 8
jb 0x519daf
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x2e
jne 0x519dfa
mov edx, edi
cmp ecx, 8
jb 0x519dc0
mov edx, dword [edi]
cmp word [edx + eax*2 - 4], 0x2e
jne 0x519dfa
cmp eax, 2
je 0x519f7b
mov edx, edi
cmp ecx, 8
jb 0x519dda
mov edx, dword [edi]
movzx eax, word [edx + eax*2 - 6]
cmp eax, 0x2f
je 0x519f7b
cmp eax, 0x5c
je 0x519f7b
cmp eax, 0x3a
je 0x519f7b
mov dword [ebp - 0xc8], 0
call fcn.005164f0
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.0051b6d0
add esp, 0xc
cmp dword [ebp - 0xd0], 3
jne 0x519e48
test esi, esi
je 0x519e41
mov dword [esi], 0
call fcn.005164f0
mov dword [esi + 4], eax
xor al, al
jmp 0x519fb7
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.00518d20
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 4
je 0x519eca
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.0051b6d0
add esp, 0xc
cmp dword [ebp - 0xd0], 1
jne 0x519eca
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00519cf0
mov ecx, dword [ebp - 0xc8]
add esp, 8
mov byte [ebp - 4], 4
test ecx, ecx
je 0x519eca
test esi, esi
je 0x51a01e
mov eax, dword [ebp - 0xc4]
mov dword [esi], ecx
lea ecx, [ebp - 0x40]
mov dword [esi + 4], eax
call fcn.004c4f80
xor al, al
jmp 0x519fb7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x519ed4
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x519f02
test esi, esi
je 0x519ef3
mov dword [esi], 0
call fcn.005164f0
mov dword [esi + 4], eax
lea ecx, [ebp - 0x40]
mov bl, 1
call fcn.004c4f80
jmp 0x519fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0xd0], 0
call fcn.005164f0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xd8]
push edi
push eax
call fcn.0051b6d0
add esp, 0xc
cmp dword [ebp - 0xd8], 3
jne 0x519f5d
test esi, esi
je 0x519f6f
mov dword [esi], 0
call fcn.005164f0
lea ecx, [ebp - 0x40]
mov dword [esi + 4], eax
xor bl, bl
call fcn.004c4f80
jmp 0x519fb5
test esi, esi
je 0x51a05f
call fcn.005164f0
mov dword [esi], ebx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.004c4f80
jmp 0x519fb5
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00518d20
push esi
push eax
mov dword [ebp - 4], 2
call fcn.00519cf0
add esp, 8
mov bl, al
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp ecx, 8
jb 0x519fb5
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004c2530
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00602a00
mov esp, ebp
pop ebp
ret
push 0x4941f4
lea ecx, [ebp - 0x28]
call fcn.004b8ac0
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
push 0x16
push eax
call fcn.0051af80
add esp, 8
lea ecx, [ebp - 0x8c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.005196f0
push 0x6370d8
lea eax, [ebp - 0x8c]
push eax
call fcn.00603d27
push 0x4941f4
lea ecx, [ebp - 0x28]
call fcn.004b8ac0
push dword [ebp - 0xc4]
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 6
push dword [ebp - 0xc8]
lea ecx, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.005196f0
push 0x6370d8
lea eax, [ebp - 0x8c]
push eax
call fcn.00603d27
push 0x49421c
lea ecx, [ebp - 0x58]
call fcn.004b8ac0
mov byte [ebp - 4], 7
call fcn.005164f0
push eax
push ebx
lea ecx, [ebp - 0xe0]
call fcn.004c94a0
lea ecx, [ebp - 0xc0]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.005196f0
push 0x6370d8
lea eax, [ebp - 0xc0]
push eax
call fcn.00603d27
int3