Function at 0x49b850
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6e9036
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x7ce4e4]
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 esi, ecx
mov edi, dword [ebp + 8]
call fcn.0049b090
test al, al
je 0x49b919
cmp byte [ebp + 0xc], 0
je 0x49b912
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b8a5
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x258]
push eax
call fcn.0049a8e0
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push eax
push 0x791f84
mov ecx, edi
call fcn.0049c7f0
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x13c], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49b90b
mov eax, dword [ebp - 0x250]
lea ecx, [ebp - 0x24c]
cmp eax, ecx
je 0x49b90b
push eax
call fcn.005cff1c
add esp, 4
xor al, al
jmp 0x49baf3
mov al, 1
jmp 0x49baf3
lea ecx, [ebp - 0x134]
call fcn.00499a50
push 1
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x130], 0
call fcn.0049a590
cmp byte [ebp - 0x18], 0
lea eax, [ebp - 0x128]
cmove eax, dword [ebp - 0x12c]
xor ecx, ecx
mov word [eax + 4], cx
lea eax, [ebp - 0x134]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0049c340
test al, al
je 0x49b9e0
cmp dword [ebp - 0x130], 2
jb 0x49b9c7
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x128]
mov ecx, dword [ebp - 0x12c]
test bl, bl
cmove eax, ecx
movzx edx, word [eax + 6]
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 8]
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x128]
cmove eax, ecx
movzx eax, word [eax + 0xa]
cmp edx, 0x3a
jne 0x49b9c7
cmp word [ebp - 0x380], 0x5c
jne 0x49b9c7
test ax, ax
je 0x49b9e0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x134]
push 0
push edi
call fcn.0049b850
test al, al
je 0x49ba91
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49b9ef
mov eax, dword [esi + 8]
push 0
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x49ba95
cmp byte [esi + 0x11c], al
lea eax, [esi + 0xc]
jne 0x49ba11
mov eax, dword [esi + 8]
push 0
push 0
push 0
push 0
push 0
add eax, 4
lea ecx, [ebp - 0x37c]
push eax
call fcn.0049a8e0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.0049c7f0
mov ecx, eax
call fcn.0049c950
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, edi
call fcn.0049c7f0
lea ecx, [ebp - 0x37c]
push ecx
push 0x791fa0
mov ecx, eax
call fcn.0049ca90
cmp byte [ebp - 0x260], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49ba91
mov eax, dword [ebp - 0x374]
lea ecx, [ebp - 0x370]
cmp eax, ecx
je 0x49ba91
push eax
call fcn.005cff1c
add esp, 4
xor bl, bl
jmp 0x49bac8
cmp byte [ebp + 0x10], 0
je 0x49bac6
cmp byte [esi + 0x11c], 0
lea eax, [esi + 0xc]
jne 0x49baaa
mov eax, dword [esi + 8]
push 1
push 0x10000000
add eax, 4
push 1
push eax
call fcn.004a8650
add esp, 0x10
mov ecx, esi
call fcn.0049c470
mov bl, 1
cmp byte [ebp - 0x18], 0
mov dword [ebp - method.t_str.virtual_0], vtable.t_str.0
jne 0x49baf1
mov eax, dword [ebp - 0x12c]
lea ecx, [ebp - 0x128]
cmp eax, ecx
je 0x49baf1
push eax
call fcn.005cff1c
add esp, 4
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.005be209
mov esp, ebp
pop ebp
ret 0xc