Function at 0x4a4dac
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x12
push 0
push 0
dec ecx
jne 0x4a4db4
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a561c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov edx, dword [eax + 0x40]
mov eax, dword [0x4ae7fc]
call fcn.0044ace4
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov edx, dword [eax + 0x48]
mov eax, dword [0x4ae7fc]
call fcn.0044ad30
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
add edx, dword [eax + 0x4c]
add edx, 0xc
mov eax, dword [0x4ae7fc]
call fcn.0044ad08
mov eax, dword [0x4ae7fc]
call fcn.00467e6c
push 0
lea eax, [ebp - 4]
push eax
push 0x200
push 0x4ae811
push 5
mov eax, dword [0x4af218]
push eax
call dword [0x4af084]
test eax, eax
jne 0x4a4e68
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x220]
mov edx, 0x4a5634
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
mov dword [0x4ae80c], eax
mov byte [0x4ae801], 1
mov eax, dword [0x4ac8c4]
mov dword [eax], 0x64
xor edx, edx
mov eax, dword [ebx + 0x308]
call fcn.0044b5a4
xor esi, esi
mov byte [0x4ae800], 0
mov eax, 0xbb8
test eax, eax
jl 0x4a4f43
inc eax
mov dword [ebp - 0x20], eax
xor edi, edi
mov eax, ebx
call fcn.004a4880
mov eax, dword [0x4ae804]
mov edx, 0x4a5648
call fcn.00404510
jne 0x4a4ebb
mov esi, 0xb
jmp 0x4a4f22
mov eax, dword [0x4ae804]
mov edx, 0x4a5664
call fcn.00404510
jne 0x4a4ed3
mov esi, 0x16
jmp 0x4a4f22
mov eax, dword [0x4ae804]
mov edx, 0x4a5680
call fcn.00404510
jne 0x4a4f22
mov eax, 0x4ae804
call fcn.00404104
mov eax, dword [0x4ac8c4]
mov dword [eax], 0x64
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x308]
call fcn.0044b574
lea eax, [ebp - 0x24]
mov edx, 0x4a569c
call fcn.004043cc
mov edx, dword [ebp - 0x24]
mov eax, dword [ebx + 0x308]
call fcn.0044b5a4
test esi, esi
jg 0x4a4f43
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4acb08]
mov eax, dword [eax]
call fcn.0046b1e0
inc edi
dec dword [ebp - 0x20]
jne 0x4a4e9c
lea edx, [ebp - 0x2c]
mov eax, dword [ebx + 0x308]
call fcn.0044b574
push dword [ebp - 0x2c]
push 0x4a56a8
lea edx, [ebp - 0x30]
mov eax, edi
call fcn.004087d4
push dword [ebp - 0x30]
push 0x4a56b4
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.004087d4
push dword [ebp - 0x34]
lea eax, [ebp - 0x28]
mov edx, 5
call fcn.00404484
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx + 0x308]
call fcn.0044b5a4
test esi, esi
je 0x4a55b7
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, 0xff
call fcn.004027b4
mov edi, eax
push 0xff
push edi
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x18]
mov edx, edi
call fcn.004042fc
lea eax, [ebp - 0x1c]
mov ecx, 0x4a56c0
mov edx, dword [ebp - 0x18]
call fcn.00404410
push 0
lea eax, [ebp - 0x38]
mov ecx, 0x4a56d8
mov edx, dword [ebp - 0x18]
call fcn.00404410
mov eax, dword [ebp - 0x38]
call fcn.004045c4
push eax
call sub.kernel32.dll_CreateDirectoryA
push 0
mov eax, dword [ebp - 0x1c]
call fcn.004045c4
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x3c]
mov ecx, 0x4a56e8
mov edx, dword [ebp - 0x1c]
call fcn.00404410
mov eax, dword [ebp - 0x3c]
mov dl, 1
call fcn.004a2ddc
lea edx, [ebp - 0x14]
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x310]
call fcn.0044b574
mov eax, dword [ebp - 0x14]
call fcn.00408d0c
test al, al
jne 0x4a5068
push 0x30
push 0x4a56ec
push 0x4a56f4
mov eax, ebx
call fcn.00451ea8
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a55b7
push 1
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00451ea8
mov ecx, 0x4a570c
mov edx, dword [ebp - 0x14]
call fcn.004a25f8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4a50ab
push 0x30
push 0x4a56ec
push 0x4a5710
mov eax, ebx
call fcn.00451ea8
push eax
call sub.user32.dll_MessageBoxA_1
jmp 0x4a55b7
cmp esi, 0xb
jne 0x4a515d
mov dword [ebp - 8], 2
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 8]
call fcn.004087d4
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x40]
mov edx, 0x4a5728
call fcn.00404410
mov eax, dword [ebp - 0x40]
push eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 8]
call fcn.004087d4
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x48]
mov edx, 0x4a5734
call fcn.00404410
mov eax, dword [ebp - 0x48]
call fcn.004045c4
push eax
mov ecx, dword [0x4ad668]
mov dl, 1
mov eax, dword [0x419244]
call fcn.0041ddc0
mov esi, eax
push dword [ebp - 0x1c]
push 0x4a5744
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
sub eax, 2
call fcn.004087d4
push dword [ebp - 0x54]
push 0x4a5750
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.00404484
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.0041db68
mov eax, esi
call fcn.00403314
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x26
jne 0x4a50bb
jmp 0x4a51d5
xor eax, eax
mov dword [ebp - 8], eax
push dword [ebp - 0x1c]
push 0x4a56e8
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 8]
call fcn.004087d4
push dword [ebp - 0x5c]
push 0x4a5750
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404484
mov eax, dword [ebp - 0x58]
call fcn.00408e34
inc dword [ebp - 8]
cmp dword [ebp - 8], 0xa
jne 0x4a5162
lea eax, [ebp - 0x60]
mov ecx, 0x4a5760
mov edx, dword [ebp - 0x1c]
call fcn.00404410
mov eax, dword [ebp - 0x60]
call fcn.00408e34
lea eax, [ebp - 0x64]
mov ecx, 0x4a5774
mov edx, dword [ebp - 0x1c]
call fcn.00404410
mov eax, dword [ebp - 0x64]
call fcn.00408e34
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0x2fc]
mov ecx, dword [eax]
call dword [ecx + 0x110]
mov eax, dword [ebx + 0x2fc]
call fcn.0049e190
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [ebx + 0x2fc]
mov edx, dword [eax]
call dword [edx + 0xc8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov edx, 0x64
call fcn.004392a0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
xor edx, edx
call fcn.004392b0
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x4a549b
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
inc eax
imul eax, eax, 0x64
cdq
idiv dword [ebp - 0xc]
mov edi, eax
add edi, edi
mov eax, edi
mov ecx, 0x65
cdq
idiv ecx
mov esi, edx
mov edx, esi
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
call fcn.004392b0
cmp edi, 0x64
jle 0x4a52cf
lea eax, [ebp - 0x68]
push eax
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x6c], 0
lea edx, [ebp - 0x70]
xor ecx, ecx
mov eax, 0x4a5788
call fcn.0040976c
lea eax, [ebp - 0x68]
mov edx, 0x4a579c
call fcn.004043cc
mov eax, dword [ebp - 0x68]
push eax
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00438184
pop edx
call fcn.004380e0
jmp 0x4a531a
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x6c], 0
lea edx, [ebp - 0x70]
xor ecx, ecx
mov eax, 0x4a57a8
call fcn.0040976c
lea eax, [ebp - 0x74]
mov edx, 0x4a579c
call fcn.004043cc
mov eax, dword [ebp - 0x74]
push eax
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00438184
pop edx
call fcn.004380e0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
call fcn.0044bab0
mov eax, dword [0x4acb08]
mov eax, dword [eax]
call fcn.0046b1e0
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0x2fc]
mov eax, dword [eax + 0x218]
mov edx, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov byte [0x4ae800], 0
cmp byte [0x4ae801], 0
jne 0x4a549b
mov al, byte [ebp - 8]
inc eax
push eax
mov al, byte [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.004a4998
push 0x4a57bc
lea edx, [ebp - 0x7c]
mov eax, dword [ebp - 8]
inc eax
call fcn.004087d4
push dword [ebp - 0x7c]
push 0x4a57cc
push dword [ebp - 0x10]
lea eax, [ebp - 0x78]
mov edx, 4
call fcn.00404484
mov edx, dword [ebp - 0x78]
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x84]
mov eax, dword [0x4ac8c4]
mov eax, dword [eax]
call fcn.004087d4
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x4a57dc
call fcn.00404410
mov edx, dword [ebp - 0x80]
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov esi, dword [0x4ae808]
test esi, esi
jl 0x4a542e
inc esi
xor edi, edi
mov eax, ebx
call fcn.004a4880
cmp byte [0x4ae800], 0
jne 0x4a542e
push 0xa
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4ac8c4]
mov dword [eax], 0xa
mov eax, dword [0x4acb08]
mov eax, dword [eax]
call fcn.0046b1e0
inc edi
dec esi
jne 0x4a53fc
lea edx, [ebp - 0x8c]
mov esi, dword [ebx + 0x308]
mov eax, esi
call fcn.0044b574
push dword [ebp - 0x8c]
push 0x4a57ec
lea edx, [ebp - 0x90]
mov eax, edi
call fcn.004087d4
push dword [ebp - 0x90]
lea eax, [ebp - 0x88]
mov edx, 3
call fcn.00404484
mov edx, dword [ebp - 0x88]
mov eax, esi
call fcn.0044b5a4
mov eax, dword [ebx + 0x308]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x4a524e
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jne 0x4a557a
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x380]
cmp byte [eax + 0x38], 0
je 0x4a54e0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00438184
mov edx, 0x4a57fc
call fcn.004380e0
jmp 0x4a5504
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x2fc]
mov eax, dword [eax + 0x208]
xor edx, edx
call fcn.00438184
mov edx, 0x4a5814
call fcn.004380e0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x324]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
mov edx, 0x64
call fcn.004392a0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x348]
xor edx, edx
call fcn.004392b0
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x304]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x4a557a
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x350]
mov dl, 1
call fcn.00433070
mov eax, dword [0x4ac7e4]
mov eax, dword [eax]
mov eax, dword [eax + 0x38c]
mov eax, dword [eax + 0x16c]
mov edx, 0xff00000f
call fcn.004253f0
lea eax, [ebp - 0x94]
mov ecx, 0x4a56e8
mov edx, dword [ebp - 0x1c]
call fcn.00404410
mov eax, dword [ebp - 0x94]
mov dl, 1
call fcn.004a2ddc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5623
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00404128
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.00404128
lea eax, [ebp - 0x84]
mov edx, 5
call fcn.00404128
lea eax, [ebp - 0x68]
mov edx, 0xf
call fcn.00404128
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00404128
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.00404128
ret