Function at 0x49728c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x180], edx
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x164]
mov edx, dword [0x407468]
call fcn.004049c8
xor eax, eax
push ebp
push 0x4975d6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x44]
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x497584
mov eax, dword [ebp - 4]
call fcn.00497070
test al, al
je 0x497584
mov dl, 1
mov eax, dword [0x416cac]
call fcn.004032a4
mov esi, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], esi
xor eax, eax
push ebp
push 0x49757d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
lea eax, [ebp - 0x168]
call fcn.00404330
mov edx, dword [ebp - 0x168]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
mov edx, 0x4975f0
call fcn.00404430
jne 0x49737c
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00496580
jmp 0x49738a
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x48]
call fcn.004040bc
cmp dword [ebp - 0xc], 0
je 0x497564
push 0
push dword [ebp - 0xc]
push 0x497600
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004043a4
mov eax, dword [ebp - 0x16c]
call fcn.004044e4
push eax
call sub.kernel32.dll_CreateDirectoryA
push dword [ebp - 0xc]
push 0x497600
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
lea eax, [ebp - 0x170]
mov edx, 3
call fcn.004043a4
mov eax, dword [ebp - 0x170]
lea ecx, [ebp - 0x164]
mov edx, 0x10
call fcn.00408cac
test eax, eax
jne 0x497513
push dword [ebp - 0xc]
push 0x497600
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
mov eax, dword [ebp - 4]
add eax, 0x68
mov edx, 3
call fcn.004043a4
push dword [ebp - 0xc]
push 0x497600
mov eax, dword [ebp - 4]
push dword [eax + 0x58]
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004043a4
mov edx, dword [ebp - 0x174]
mov eax, dword [ebp - 4]
call fcn.00496700
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d], 0
je 0x49747b
push 0
lea edx, [ebp - 0x178]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 0x178]
mov cx, word [0x497604]
mov dl, 2
call fcn.0042e9d8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x50]
test ebx, ebx
je 0x4974a3
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov edx, dword [ebp - 0x17c]
mov eax, ebx
call fcn.00438638
mov eax, dword [ebp - 4]
mov byte [eax + 0x78], 1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c], 0
je 0x497559
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x5c]
test ebx, ebx
je 0x4974fc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
lea eax, [ebp - 0x184]
call fcn.00404330
mov edx, dword [ebp - 0x184]
lea eax, [ebp - 0x180]
call fcn.00404888
mov edx, dword [ebp - 0x180]
mov eax, ebx
call fcn.0047770c
jmp 0x497559
push 0
mov cx, word [0x497604]
mov dl, 1
mov eax, 0x497610
call fcn.0042e9d8
jmp 0x497559
mov eax, dword [ebp - 4]
cmp word [eax + 0x72], 0
je 0x497552
push 0x68
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
push dword [ebx + 0x10]
push 0x497650
push dword [ebx + 0x18]
lea eax, [ebp - 0x188]
mov edx, 3
call fcn.004043a4
mov ecx, dword [ebp - 0x188]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x74]
call dword [ebx + 0x70]
mov eax, dword [ebp - 4]
mov byte [eax + 0x78], 0
lea eax, [ebp - 0x164]
call fcn.00408d20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497584
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
call fcn.004032d4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4975dd
lea eax, [ebp - 0x188]
mov edx, 2
call fcn.00404048
lea eax, [ebp - 0x180]
call fcn.00404730
lea eax, [ebp - 0x17c]
mov edx, 6
call fcn.00404048
lea eax, [ebp - 0x164]
mov edx, dword [0x407468]
call fcn.00404a98
lea eax, [ebp - 0xc]
call fcn.00404024
ret