Function at 0x4a3586
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.004c6316
push eax
mov eax, dword [ebp - 0x230]
cmp dword [eax], 0
jne 0x4a361c
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], 0x52761e
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.004c668e
push eax
mov dword [esp], 0x52772c
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 0x4a3a1b
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 0x4a3a10
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.004c816e
lea edx, [ebx + 0x24]
cmp edx, eax
push ecx
mov ecx, dword [ebp - 0x244]
jne 0x4a3a10
mov eax, dword [edi + 0xc]
mov dword [esp + 4], 0x4ce25c
mov dword [esp], esi
mov dword [ebp - 0x120], eax
call fcn.004c7baa
lea ecx, [ebx + 0x78]
push eax
push eax
mov dword [esp], edi
call fcn.0051cd4c
push edx
mov eax, dword [eax]
add eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x230]
mov dword [esp + 8], 0x527621
add eax, 4
mov dword [esp + 4], 0x105
mov dword [esp + 0xc], eax
mov dword [esp], esi
call fcn.00520860
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x4a373c
mov dword [esp], esi
lea ecx, [ebp - 0x228]
call fcn.004c639a
mov ecx, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.0050c924
lea ecx, [ebp - 0x228]
push eax
call fcn.004c616a
mov dword [esp], edi
lea ecx, [ebx + 0x58]
call fcn.0051cd4c
push esi
cmp dword [eax], 5
jne 0x4a389a
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.004c706c
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 0x4a37a2
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 0x4a3840
mov dword [esp], eax
lea ecx, [ebx + 0x60]
call fcn.0051cd4c
push edx
mov edx, dword [ebp - 0x244]
cmp dword [eax], edx
jne 0x4a37a2
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.004c99c3
shr eax, 2
cmp esi, eax
jne 0x4a3826
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.004c70ac
push eax
push eax
mov eax, dword [ebp - 0x224]
mov edx, dword [ebp - 0x248]
mov dword [eax], edx
add dword [ebp - 0x224], 4
jmp 0x4a37a2
lea eax, [ebp - 0x120]
lea esi, [ebp - 0x22c]
mov dword [esp], eax
mov ecx, esi
call fcn.004c639a
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.004a3586
mov ecx, esi
sub esp, 0xc
call fcn.004c616a
mov eax, dword [edi]
add edi, dword [eax - 0xc]
mov ecx, edi
call fcn.00509740
lea edx, [ebp - 0x228]
mov ecx, edx
call fcn.004a2dbe
jmp 0x4a3a10
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp dword [eax], 0
jne 0x4a38f5
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 0x4a38f5
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.004c62d0
lea ecx, [ebp - 0x224]
call fcn.004c62d0
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.004c99c3
mov ecx, 0xc
xor edx, edx
div ecx
cmp esi, eax
jne 0x4a3980
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.004c70ac
push ecx
push ecx
lea eax, [ebp - 0x228]
mov esi, dword [ebx + 0x1c]
mov dword [esp], eax
mov ecx, esi
call fcn.004c6316
lea ecx, [esi + 4]
push eax
lea eax, [ebp - 0x224]
mov dword [esp], eax
call fcn.004c6316
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.004c616a
lea ecx, [ebp - 0x228]
call fcn.004c616a
mov dword [esp], edi
mov esi, dword [ebx + 0x1c]
lea ecx, [ebx + 0x68]
call fcn.0051cd4c
lea ecx, [esi - 0xc]
push edx
cmp ecx, eax
je 0x4a39ea
mov dword [esp], eax
call fcn.004c665a
push ecx
lea eax, [ebp - 0x120]
lea ecx, [esi - 8]
mov dword [esp], eax
call fcn.004c668e
lea ecx, [ebx + 0x70]
push eax
mov dword [esp], edi
call fcn.0051cd4c
push edx
mov eax, dword [eax]
mov dword [esi - 4], eax
add dword [ebx + 0x48], eax
inc dword [ebp - 0x240]
jmp 0x4a3638
lea ecx, [ebp - 0x230]
call fcn.004c616a
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc