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

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 8], ecx
push ebx
push ebp
mov ecx, dword [eax - 8]
push esi
test ecx, ecx
push edi
je 0x4a5ed2
mov eax, dword [0x4d9540]
mov ecx, 0x104
mov dword [esp + 0x10], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x4a5cb8
cmp dword [eax - 4], ecx
jge 0x4a5cf9
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x4a5cc1
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.004012f0
test eax, eax
je 0x4a5cf9
mov edi, dword [esp + 0x10]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x14]
mov dword [eax - 8], ebx
call fcn.00401350
mov eax, dword [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [esp + 0x10]
call fcn.00401380
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ecx
call edi
mov edx, dword [esp + 0x10]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x10]
mov word [ecx + eax*2], 0
mov edx, dword [0x4d9540]
mov eax, str.S_OK_tmp_
mov dword [esp + 0x14], edx
test eax, eax
je 0x4a5d79
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4a5d79
push esi
lea ecx, [esp + 0x18]
call fcn.004012f0
test eax, eax
je 0x4a5d79
mov ecx, dword [esp + 0x14]
inc esi
push esi
push str.S_OK_tmp_
push ecx
call fcn.004011c0
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00401970
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
mov edx, dword [eax - 8]
push edx
call fcn.00401850
mov eax, dword [esp + 0x14]
mov edx, dword [0x4d9544]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a5dbc
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4a5dbc
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [0x4ecbf4]
mov esi, dword [0x4d9540]
push eax
mov ecx, dword [eax - 8]
push ecx
lea ecx, [esp + 0x18]
call fcn.00401850
mov edx, str..zip
test edx, edx
jne 0x4a5def
xor eax, eax
jmp 0x4a5df6
push str..zip
call edi
push str..zip
push eax
lea ecx, [esp + 0x18]
call fcn.00401850
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
push edx
call fcn.00401200
call fcn.004a6400
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp ecx, eax
je 0x4a5e87
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a5e51
mov edx, dword [0x4d9544]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a5e58
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a5e68
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x2c]
call fcn.00401630
jmp 0x4a5e83
lea ecx, [esp + 0x24]
call fcn.0040e950
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov edx, dword [0x4d9544]
lea ecx, [esi - 0xc]
cmp ecx, edx
je 0x4a5eab
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x4a5ea7
push esi
call fcn.004c5432
add esp, 4
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4d9544]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a5ed2
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x4a5ed2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.004c5432
add esp, 4
push ecx
lea edx, [esp + 0x2c]
mov ecx, esp
push edx
call fcn.00401200
push ecx
lea eax, [esp + 0x2c]
mov ecx, esp
push eax
call fcn.00401200
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x24]
call fcn.004a5f20
lea ecx, [esp + 0x24]
mov bl, al
call fcn.004014c0
lea ecx, [esp + 0x28]
call fcn.004014c0
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
add esp, 0xc
ret 0xc