Function at 0x51fcf0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624f0d
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x659af8]
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 0x51fd47
test esi, esi
je 0x51ffd3
call fcn.0051bfb0
mov dword [esi + 4], eax
xor al, al
mov dword [esi], 0x16
jmp 0x51ffb7
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0051e0d0
cmp dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
jne 0x51fd71
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x2e
jne 0x51fd71
mov bl, 1
jmp 0x51fd73
xor bl, bl
mov dword [ebp - 4], 1
cmp ecx, 8
jb 0x51fd8c
lea eax, [ecx + 1]
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.004c8530
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x51ff7b
mov eax, dword [edi + 0x10]
cmp eax, 2
jb 0x51fdfa
mov ecx, dword [edi + 0x14]
mov edx, edi
cmp ecx, 8
jb 0x51fdaf
mov edx, dword [edi]
cmp word [edx + eax*2 - 2], 0x2e
jne 0x51fdfa
mov edx, edi
cmp ecx, 8
jb 0x51fdc0
mov edx, dword [edi]
cmp word [edx + eax*2 - 4], 0x2e
jne 0x51fdfa
cmp eax, 2
je 0x51ff7b
mov edx, edi
cmp ecx, 8
jb 0x51fdda
mov edx, dword [edi]
movzx eax, word [edx + eax*2 - 6]
cmp eax, 0x2f
je 0x51ff7b
cmp eax, 0x5c
je 0x51ff7b
cmp eax, 0x3a
je 0x51ff7b
mov dword [ebp - 0xc8], 0
call fcn.0051c4f0
mov dword [ebp - 0xc4], eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xd0]
push edi
push eax
call fcn.005216d0
add esp, 0xc
cmp dword [ebp - 0xd0], 3
jne 0x51fe48
test esi, esi
je 0x51fe41
mov dword [esi], 0
call fcn.0051c4f0
mov dword [esi + 4], eax
xor al, al
jmp 0x51ffb7
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0051ed20
cmp dword [ebp - 0x30], 0
mov dword [ebp - 4], 4
je 0x51feca
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.005216d0
add esp, 0xc
cmp dword [ebp - 0xd0], 1
jne 0x51feca
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0051fcf0
mov ecx, dword [ebp - 0xc8]
add esp, 8
mov byte [ebp - 4], 4
test ecx, ecx
je 0x51feca
test esi, esi
je 0x52001e
mov eax, dword [ebp - 0xc4]
mov dword [esi], ecx
lea ecx, [ebp - 0x40]
mov dword [esi + 4], eax
call fcn.004caf80
xor al, al
jmp 0x51ffb7
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x51fed4
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x51ff02
test esi, esi
je 0x51fef3
mov dword [esi], 0
call fcn.0051c4f0
mov dword [esi + 4], eax
lea ecx, [ebp - 0x40]
mov bl, 1
call fcn.004caf80
jmp 0x51ffb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0xd0], 0
call fcn.0051c4f0
mov dword [ebp - 0xcc], eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xd8]
push edi
push eax
call fcn.005216d0
add esp, 0xc
cmp dword [ebp - 0xd8], 3
jne 0x51ff5d
test esi, esi
je 0x51ff6f
mov dword [esi], 0
call fcn.0051c4f0
lea ecx, [ebp - 0x40]
mov dword [esi + 4], eax
xor bl, bl
call fcn.004caf80
jmp 0x51ffb5
test esi, esi
je 0x52005f
call fcn.0051c4f0
mov dword [esi], ebx
mov dword [esi + 4], eax
lea ecx, [ebp - 0x40]
xor bl, bl
call fcn.004caf80
jmp 0x51ffb5
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0051ed20
push esi
push eax
mov dword [ebp - 4], 2
call fcn.0051fcf0
add esp, 8
mov bl, al
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 3
cmp ecx, 8
jb 0x51ffb5
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004c8530
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.00608a00
mov esp, ebp
pop ebp
ret
push 0x49a1f4
lea ecx, [ebp - 0x28]
call fcn.004beac0
lea eax, [ebp - 0xd8]
mov dword [ebp - 4], 0
push 0x16
push eax
call fcn.00520f80
add esp, 8
lea ecx, [ebp - 0x8c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0051f6f0
push 0x63d0d8
lea eax, [ebp - 0x8c]
push eax
call fcn.00609d27
push 0x49a1f4
lea ecx, [ebp - 0x28]
call fcn.004beac0
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.0051f6f0
push 0x63d0d8
lea eax, [ebp - 0x8c]
push eax
call fcn.00609d27
push 0x49a21c
lea ecx, [ebp - 0x58]
call fcn.004beac0
mov byte [ebp - 4], 7
call fcn.0051c4f0
push eax
push ebx
lea ecx, [ebp - 0xe0]
call fcn.004cf4a0
lea ecx, [ebp - 0xc0]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.0051f6f0
push 0x63d0d8
lea eax, [ebp - 0xc0]
push eax
call fcn.00609d27
int3