Function at 0x4a382e
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
lea ecx, [ebp - 0x230]
sub esp, 0x25c
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call fcn.004c65c6
push eax
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jne 0x4a38c4
lea edi, [ebp - 0x228]
mov dword [esp], 0x104
lea esi, [ebp - 0x120]
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0x527626
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x230]
push eax
push eax
mov dword [esp], esi
call fcn.004c693e
push eax
mov dword [esp], 0x527734
call sym.winbox.exe_getObjectMap_unsigned_int_const_
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x23c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x244], eax
sub eax, edx
sar eax, 2
cmp dword [ebp - 0x240], eax
jae 0x4a3cc3
mov edi, dword [ebp - 0x240]
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x23c]
mov edx, dword [edx + edi*4]
mov eax, dword [eax]
mov dword [esp], edx
call dword [eax + 0x6c]
mov edi, eax
push esi
test eax, eax
je 0x4a3cb8
lea esi, [ebp - 0x120]
mov eax, dword [eax + 0xc]
lea ecx, [ebx + 0x20]
mov dword [esp], esi
mov dword [ebp - 0x244], ecx
mov dword [ebp - 0x120], eax
call fcn.004c841e
lea edx, [ebx + 0x24]
cmp edx, eax
push ecx
mov ecx, dword [ebp - 0x244]
jne 0x4a3cb8
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0x4ce50c
mov dword [esp], esi
mov dword [ebp - 0x120], eax
call fcn.004c7e5a
lea ecx, [ebx + 0x78]
push eax
push eax
mov dword [esp], edi
call fcn.0051d11c
push edx
mov eax, dword [eax]
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 0x527629
add eax, 4
mov dword [esp + 4], 0x105
mov dword [esp + 0xc], eax
mov dword [esp], esi
call fcn.00520c30
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x4a39e4
mov dword [esp], esi
lea ecx, [ebp - 0x228]
call fcn.004c664a
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.0050cbf4
lea ecx, [ebp - 0x228]
push eax
call fcn.004c641a
mov dword [esp], edi
lea ecx, [ebx + 0x58]
call fcn.0051d11c
push esi
cmp dword [eax], 5
jne 0x4a3b42
lea eax, [ebp - 0x120]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
push ecx
mov eax, dword [edi + 0xc]
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x244], eax
call fcn.004c731c
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [eax]
call dword [eax + 0xe8]
mov edi, eax
test eax, eax
je 0x4a3a4a
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
add edx, edi
inc dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov esi, eax
test eax, eax
je 0x4a3ae8
mov dword [esp], eax
lea ecx, [ebx + 0x60]
call fcn.0051d11c
push edx
mov edx, dword [ebp - 0x244]
cmp dword [eax], edx
jne 0x4a3a4a
mov eax, dword [esi + 0xc]
mov esi, dword [ebp - 0x224]
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x228]
mov dword [esp], eax
sub esi, eax
sar esi, 2
call fcn.004c9c73
shr eax, 2
cmp esi, eax
jne 0x4a3ace
mov eax, dword [ebp - 0x224]
sub eax, dword [ebp - 0x228]
mov ecx, 1
mov dword [esp + 4], 4
sar eax, 2
add eax, eax
cmove eax, ecx
lea ecx, [ebp - 0x228]
shl eax, 2
mov dword [esp], eax
call fcn.004c735c
push eax
push eax
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x248]
mov dword [eax], edx
add dword [ebp - 0x224], 4
jmp 0x4a3a4a
lea eax, [ebp - 0x120]
lea esi, [ebp - 0x22c]
mov dword [esp], eax
mov ecx, esi
call fcn.004c664a
lea edx, [ebp - 0x228]
mov ecx, ebx
push eax
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], esi
call fcn.004a382e
mov ecx, esi
sub esp, 0xc
call fcn.004c641a
mov eax, dword [edi]
add edi, dword [eax - 0xc]
mov ecx, edi
call fcn.00509a10
lea edx, [ebp - 0x228]
mov ecx, edx
call fcn.004a3066
jmp 0x4a3cb8
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x4a3b9d
lea eax, [ebp - 0x120]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x4a3b9d
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
mov dword [ebp - 0x228], 0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 0
call fcn.004c6580
lea ecx, [ebp - 0x224]
call fcn.004c6580
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0x1c]
mov dword [esp], eax
sub esi, eax
sar esi, 2
imul esi, esi, 0xaaaaaaab
call fcn.004c9c73
mov ecx, 0xc
xor edx, edx
div ecx
cmp esi, eax
jne 0x4a3c28
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x18]
mov edx, 1
lea ecx, [ebx + 0x18]
sar eax, 2
mov dword [esp + 4], 0xc
imul eax, eax, 0x55555556
test eax, eax
cmove eax, edx
imul eax, eax, 0xc
mov dword [esp], eax
call fcn.004c735c
push ecx
push ecx
lea eax, [ebp - 0x228]
mov esi, dword [ebx + 0x1c]
mov dword [esp], eax
mov ecx, esi
call fcn.004c65c6
lea ecx, [esi + 4]
push eax
lea eax, [ebp - 0x224]
mov dword [esp], eax
call fcn.004c65c6
mov edx, dword [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
mov dword [esi + 8], edx
mov ecx, eax
add dword [ebx + 0x1c], 0xc
call fcn.004c641a
lea ecx, [ebp - 0x228]
call fcn.004c641a
mov dword [esp], edi
mov esi, dword [ebx + 0x1c]
lea ecx, [ebx + 0x68]
call fcn.0051d11c
lea ecx, [esi - 0xc]
push edx
cmp ecx, eax
je 0x4a3c92
mov dword [esp], eax
call fcn.004c690a
push ecx
lea eax, [ebp - 0x120]
lea ecx, [esi - 8]
mov dword [esp], eax
call fcn.004c693e
lea ecx, [ebx + 0x70]
push eax
mov dword [esp], edi
call fcn.0051d11c
push edx
mov eax, dword [eax]
mov dword [esi - 4], eax
add dword [ebx + 0x48], eax
inc dword [ebp - 0x240]
jmp 0x4a38e0
lea ecx, [ebp - 0x230]
call fcn.004c641a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc