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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53a1ca
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x5897b0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x264], eax
mov edi, ecx
call fcn.00418e55
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ff75
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x268], eax
mov dword [ebp - 4], ebx
call fcn.00418e55
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40ffa4
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x26c], esi
push 0x56a874
push edi
mov byte [ebp - 4], 1
mov byte [ebp - 0x25d], 1
call fcn.00412730
mov edi, eax
add esp, 8
mov dword [ebp - 0x284], edi
cmp edi, ebx
jne 0x40fff0
mov ecx, dword [ebp - 0x264]
push str.Compressed_file_open_error
call fcn.00411090
jmp 0x41047f
push 0x80000
call fcn.00418c84
add esp, 4
push 0x80000
push eax
push edi
mov dword [ebp - 0x280], eax
call fcn.00412100
add esp, 0xc
mov dword [ebp - 0x27c], eax
cmp eax, 0x80000
je 0x410457
jmp 0x410036
mov eax, dword [ebp - 0x27c]
cmp eax, ebx
jle 0x41042f
lea ecx, [ebp - 0x11c]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
jne 0x41007b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.Error_getting_temp_path
call fcn.00401130
mov edi, dword [ebp - 0x264]
call fcn.0040f7b0
jmp 0x41009c
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x26c]
push str._svtlicmgr_temp
push eax
call fcn.00411a60
mov esi, dword [ebp - 0x26c]
add esp, 0xc
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push esi
call edi
cmp eax, ebx
jne 0x4100fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4100cc
mov edx, dword [ebp - 0x264]
mov ecx, esi
call fcn.004112d0
push ebx
push esi
call edi
cmp eax, ebx
jne 0x4100fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.Error_creating_temp_directory
call fcn.00401130
mov edi, dword [ebp - 0x264]
call fcn.0040f7b0
mov edi, dword [ebp - 0x284]
jmp 0x410431
lea eax, [esi - 0x10]
mov esi, dword [ebp - 0x268]
add esi, 0xfffffff0
cmp eax, esi
je 0x410166
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x410150
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x410150
push eax
call fcn.004119f0
add esp, 4
mov dword [ebp - 0x278], eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x41013f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [ebp - 0x278]
add eax, 0x10
mov dword [ebp - 0x268], eax
jmp 0x410166
mov ecx, dword [ebp - 0x26c]
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x268]
call fcn.00401670
push 0xd
push str._tempfile.tar
lea ecx, [ebp - 0x268]
call fcn.004073b0
mov esi, dword [ebp - 0x264]
mov edx, dword [esi + 0x9c820]
mov edi, dword [ebp - 0x268]
mov eax, dword [edx + 0x24]
push ebx
add esi, 0x9c820
push 0x1001
push edi
mov ecx, esi
call eax
test eax, eax
jne 0x4101cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x278], esp
push str.File_create_error
call fcn.00401130
mov edi, dword [ebp - 0x264]
call fcn.0040f7b0
jmp 0x410410
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
mov edx, dword [esi]
mov edx, dword [edx + 0x3c]
push eax
push ecx
mov ecx, esi
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x50]
mov ecx, esi
call edx
cmp dword [edi - 4], 1
jle 0x410207
mov eax, dword [edi - 0xc]
push eax
lea ecx, [ebp - 0x268]
call fcn.00401990
mov edi, dword [ebp - 0x268]
mov esi, 0xf
mov eax, edi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410223
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x154]
call fcn.00405210
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x24c], ebx
mov byte [ebp - 0x25c], bl
lea ecx, [ebp - 0x23c]
push ecx
mov byte [ebp - 4], 3
call fcn.00404310
mov byte [ebp - 4], 4
lea eax, [ebp - 0x154]
lea edi, [ebp - 0x25c]
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
call fcn.00403200
mov edi, 0x10
mov byte [ebp - 4], 6
cmp dword [ebp - 0x140], edi
jb 0x4102ae
mov edx, dword [ebp - 0x154]
push edx
call fcn.00418c8f
add esp, 4
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x144], ebx
mov byte [ebp - 0x154], bl
cmp dword [ebp - 0x1d0], ebx
je 0x4103ed
lea eax, [ebp - 0x26c]
push eax
lea ecx, [ebp - 0x274]
call fcn.00411900
push 1
push 0x56a8f0
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 7
call fcn.004073b0
mov esi, dword [ebp - 0x274]
cmp dword [esi - 4], 1
jle 0x410315
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x274]
call fcn.00401990
mov esi, dword [ebp - 0x274]
mov eax, esi
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x410330
sub eax, edx
push eax
push esi
lea ecx, [ebp - 0x138]
call fcn.00405210
lea edx, [ebp - 0x138]
push edx
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 8
call fcn.004032a0
test al, al
sete byte [ebp - 0x26d]
mov byte [ebp - 4], 7
cmp dword [ebp - 0x124], edi
jb 0x410380
mov eax, dword [ebp - 0x138]
push eax
call fcn.00418c8f
add esp, 4
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], ebx
mov byte [ebp - 0x138], bl
cmp byte [ebp - 0x26d], bl
je 0x4103b3
mov ecx, dword [ebp - 0x264]
push str.Error_extracting_archive_file
call fcn.00411090
add esp, 4
jmp 0x4103cb
mov ecx, dword [ebp - 0x26c]
push ecx
mov ecx, dword [ebp - 0x264]
call fcn.004104f0
mov byte [ebp - 0x25d], al
lea eax, [esi - 0x10]
mov byte [ebp - 4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410400
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x410400
mov ecx, dword [ebp - 0x264]
push str.Temporary_archive_file_open_error
call fcn.00411090
add esp, 4
lea ecx, [ebp - 0x25c]
push ecx
mov byte [ebp - 4], 1
call fcn.00403120
mov ecx, dword [ebp - 0x26c]
mov edx, dword [ebp - 0x264]
call fcn.004112d0
mov esi, dword [ebp - 0x26c]
mov edi, dword [ebp - 0x284]
jmp 0x410431
je 0x41046a
mov edx, dword [ebp - 0x280]
push 0x80000
push edx
push edi
call fcn.00412100
add esp, 0xc
mov dword [ebp - 0x27c], eax
cmp eax, 0x80000
jne 0x410030
mov ecx, dword [ebp - 0x264]
push str.Input_file_is_too_big
call fcn.00411090
add esp, 4
push edi
call fcn.00412310
mov eax, dword [ebp - 0x280]
add esp, 4
push eax
call fcn.00418c8f
add esi, 0xfffffff0
add esp, 4
mov byte [ebp - 4], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104a1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4104ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x25d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050f8ec
mov esp, ebp
pop ebp
ret 4