Function at 0x49d550
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da688
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], 1
push 0xffffffffffffffff
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x28], 0
mov word [ebp - 0x38], ax
call fcn.004052f0
lea eax, [ebp - 0x38]
mov dword [ebp - 4], 0
push eax
call fcn.00459760
xor ecx, ecx
xor esi, esi
add esp, 4
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x14], 0x2f
call fcn.0045a4e0
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49d737
mov dword [ebp - 0x14], 0x2f
test ebx, ebx
je 0x49d737
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x38]
cmp ebx, 2
jne 0x49d60b
cmp ecx, 8
lea eax, [ebp - 0x38]
cmovae eax, edx
cmp word [eax + 2], 0x3a
je 0x49d737
cmp ecx, 8
lea eax, [ebp - 0x38]
cmovae eax, edx
cmp word [eax + ebx*2 + 2], 0
je 0x49d701
push 0xffffffffffffffff
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x38]
call fcn.0045a5a0
mov edi, eax
mov byte [ebp - 4], 2
cmp edi, esi
jae 0x49d673
mov eax, dword [ebp - 0x20]
cmp eax, edi
ja 0x49d673
sub edi, eax
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [ebp - 0x18]
jne 0x49d668
push 1
lea ecx, [ebp - 0x20]
call fcn.00459ff0
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
lea eax, [edi + edi*2]
lea edi, [ecx + eax*8]
jmp 0x49d685
cmp esi, dword [ebp - 0x18]
jne 0x49d685
push 1
lea ecx, [ebp - 0x20]
call fcn.00459ff0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x49d6e0
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp dword [edi + 0x14], 8
jae 0x49d6b7
mov eax, dword [edi + 0x10]
inc eax
je 0x49d6c1
add eax, eax
push eax
push edi
push esi
call fcn.004a4fb0
add esp, 0xc
jmp 0x49d6c1
mov eax, dword [edi]
mov dword [esi], eax
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
add esi, 0x18
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
mov dword [ebp - 0x1c], esi
jb 0x49d6fb
push dword [ebp - 0x50]
call fcn.004a46e7
add esp, 4
mov edx, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x28], ebx
jb 0x49d7c7
cmp ecx, 8
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x38]
cmovae eax, edx
xor ecx, ecx
push 1
push 0xffffffffffffffff
mov word [eax + ebx*2], cx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0045a4e0
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x49d5e4
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
call fcn.004a0c20
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
mov ebx, dword [ebp - 0x1c]
mov esi, ebx
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
mov edi, dword [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov word [eax], cx
cmp ebx, edi
je 0x49d7d8
mov ecx, 1
jmp 0x49d770
cmp ecx, 1
jne 0x49d7d8
cmp dword [ebp - 0x28], 0
je 0x49d786
push 0x2f
push ecx
lea ecx, [ebp - 0x38]
call fcn.0042a8d0
push 0xffffffffffffffff
push 0
add esi, 0xffffffe8
lea ecx, [ebp - 0x38]
push esi
call fcn.00408fa0
cmp dword [ebp - 0x24], 8
lea eax, [ebp - 0x38]
push dword [ebp + 0xc]
cmovae eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49d7d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x10]
xor edx, edx
cmp eax, 0xb7
cmovne ecx, edx
mov dword [ebp - 0x10], ecx
jmp 0x49d7d4
push str.invalid_string_position
call fcn.004a3a98
mov ecx, dword [ebp - 0x10]
cmp esi, edi
jne 0x49d770
test edi, edi
je 0x49d815
mov esi, edi
cmp edi, ebx
je 0x49d80c
cmp dword [esi + 0x14], 8
jb 0x49d7f2
push dword [esi]
call fcn.004a46e7
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
add esi, 0x18
cmp esi, ebx
jne 0x49d7e2
push edi
call fcn.004a46e7
add esp, 4
cmp dword [ebp - 0x24], 8
pop edi
pop esi
pop ebx
jb 0x49d829
push dword [ebp - 0x38]
call fcn.004a46e7
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret