Function at 0x4a46f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x4794a4]
call fcn.00403e48
lea eax, [ebp - 0x2c]
mov edx, dword [0x543b3c]
call fcn.00403e48
xor eax, eax
push ebp
push 0x4a4a94
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00501d74
mov esi, eax
call fcn.00656a20
mov dword [ebp - 8], eax
call fcn.00656a20
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x128]
mov edx, dword [ebp - 4]
add eax, dword [edx + 0x12c]
test eax, eax
setg byte [ebp - 0xd]
mov eax, dword [ebp - 4]
call fcn.00600e6c
test eax, eax
setg byte [ebp - 0xe]
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
je 0x4a47c4
call fcn.00535954
mov eax, dword [eax + 0x44]
call fcn.0062af48
test al, al
je 0x4a4794
call fcn.00535954
mov eax, dword [eax + 0x44]
call fcn.0062b708
push 0
call fcn.00535954
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CreateDirectoryW
call fcn.00535954
mov edx, dword [eax + 0x44]
mov eax, dword [esi + 0x1a4]
add eax, 0x3c
mov ecx, 0x4a4aa8
call fcn.00403b24
jmp 0x4a488d
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x4a4853
cmp byte [ebp - 0xd], 0
je 0x4a483a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x4a483a
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [eax + 0x5c4]
mov eax, dword [ebp - 8]
call fcn.00656c78
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [eax + 0x5d4]
mov eax, dword [ebp - 0xc]
call fcn.00656c78
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x5c4], 0
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x5d4], 0
inc ebx
dec edi
jne 0x4a47ea
cmp byte [ebp - 0xe], 0
je 0x4a484b
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x9a0], edx
mov eax, dword [ebp - 4]
call fcn.005c1ffc
mov eax, dword [ebp - 4]
call fcn.005c009c
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
call fcn.0065d088
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x30]
mov edx, 0x4a4ac0
call fcn.0065ced8
mov edx, dword [ebp - 0x30]
mov eax, dword [esi + 0x1a4]
add eax, 0x3c
call fcn.004038bc
mov eax, dword [ebp - 4]
call fcn.005c76dc
test al, al
je 0x4a48a1
mov eax, dword [ebp - 4]
call fcn.005c009c
mov eax, dword [esi + 0x1a4]
mov byte [eax + 0x5a], 3
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
jne 0x4a48c9
mov eax, dword [esi + 0x1a4]
mov edx, dword [eax]
call dword [edx + 0x28]
test al, al
je 0x4a49d7
lea eax, [ebp - 0x20]
mov edx, dword [0x672428]
add edx, 0x2c8
mov ecx, dword [0x4794a4]
call fcn.004040ec
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 4]
add edx, 0x800
mov ecx, dword [0x543b3c]
call fcn.004040ec
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
je 0x4a4923
mov eax, dword [0x672428]
mov dword [eax + 0x2cc], 0x80000000
mov eax, dword [0x672428]
add eax, 0x2d0
call fcn.00403880
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a4478]
call fcn.0062c3b4
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1c8], eax
mov eax, ebx
call fcn.004a56d4
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
jne 0x4a4958
mov eax, ebx
call fcn.00642fd0
dec eax
jne 0x4a4977
call fcn.00501d74
mov eax, dword [eax + 0x1a4]
lea edx, [ebp - 0x30]
call fcn.006371a0
mov edx, dword [ebp - 0x30]
mov eax, ebx
call fcn.004a55c0
jmp 0x4a49a5
mov eax, dword [ebp - 4]
add eax, 0x800
lea edx, [ebp - 0x2c]
mov ecx, dword [0x543b3c]
call fcn.004040ec
mov eax, dword [0x672428]
add eax, 0x2c8
lea edx, [ebp - 0x20]
mov ecx, dword [0x4794a4]
call fcn.004040ec
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
je 0x4a49d0
mov eax, dword [0x672428]
mov edx, dword [ebp - 0x1c]
mov dword [eax + 0x2cc], edx
mov eax, dword [0x672428]
add eax, 0x2d0
mov edx, dword [ebp - 0x18]
call fcn.004038bc
mov eax, ebx
call fcn.004028c0
call fcn.004da2b4
test byte [eax + 0x2d], 0x20
jne 0x4a4a4d
mov al, byte [ebp - 0xd]
or al, byte [ebp - 0xe]
je 0x4a4a4d
cmp byte [ebp - 0xd], 0
je 0x4a4a35
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov edi, dword [eax + 0x18]
dec edi
test edi, edi
jl 0x4a4a35
inc edi
xor ebx, ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4cc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + ebx*4]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x1c]
mov dl, byte [edx + ebx*4]
mov byte [eax + 0x5c4], dl
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x1c]
mov dl, byte [edx + ebx*4]
mov byte [eax + 0x5d4], dl
inc ebx
dec edi
jne 0x4a4a04
cmp byte [ebp - 0xe], 0
je 0x4a4a45
mov eax, dword [ebp - 4]
mov byte [eax + 0x492], 1
mov eax, dword [ebp - 4]
call fcn.005c1ffc
mov eax, dword [ebp - 8]
call fcn.00656ff0
mov eax, dword [ebp - 0xc]
call fcn.00656ff0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a4a9b
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.00403898
lea eax, [ebp - 0x2c]
mov edx, dword [0x543b3c]
call fcn.00403f10
lea eax, [ebp - 0x20]
mov edx, dword [0x4794a4]
call fcn.00403f10
ret