Function at 0x74ba09
Capabilities:
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x8d3fc4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x12c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x74ba53
lea eax, [ebp - 0x12c]
push 0x852f98
push eax
call fcn.007854b0
pop ecx
pop ecx
lea esi, [ebp - 0x12c]
jmp 0x74ba58
mov esi, str.wbx7ztempoutput.txt
push 1
call fcn.0072a768
push eax
push 0x844220
push esi
call fcn.00785473
mov ebx, dword [edi + 0xc]
push ebx
mov dword [ebp - 0x140], ebx
call fcn.0074b48f
mov ecx, dword [fcn.0074be60]
push dword [edi + 8]
mov eax, dword [fcn.0074be80]
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x160], ecx
lea ecx, [ebp - 0x174]
push ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x15c], eax
call fcn.0074e9df
add esp, 0x1c
test eax, eax
je 0x74babd
push str.can_not_open_input_file
jmp 0x74be1b
lea eax, [ebp - 0x17c]
push eax
call fcn.0074e7c0
xor esi, esi
lea eax, [ebp - 0x1a0]
push esi
push eax
call fcn.0074bf06
lea eax, [ebp - 0x134]
mov dword [ebp - 0x184], esi
push 0x40000
push eax
call dword [ebp - 0x134]
mov edi, eax
add esp, 0x14
mov dword [ebp - 0x184], edi
test edi, edi
je 0x74bb21
lea eax, [ebp - 0x17c]
mov dword [ebp - 0x180], 0x40000
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x188], esi
mov dword [ebp - 0x18c], esi
call fcn.0074e738
lea eax, [ebp - 0x220]
push eax
call fcn.0074d1ee
pop ecx
xor eax, eax
test edi, edi
push 2
pop esi
cmovne esi, eax
je 0x74bb65
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0074d232
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x74bdbc
or dword [ebp - 0x158], 0xffffffff
and dword [ebp - 0x144], esi
and dword [ebp - 0x154], esi
cmp dword [ebp - 0x1e0], 1
je 0x74bba0
push str.incorrect_file_number
call fcn.00434420
add esp, 4
mov eax, 0x270f
jmp 0x74be44
xor edi, edi
and dword [ebp - 0x148], 0
lea eax, [ebp - 0x160]
push eax
and dword [ebp - 0x138], 0
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x154]
push eax
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x158]
push eax
push edi
lea eax, [ebp - 0x1a0]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0074cfe4
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x74bda7
push ebx
call fcn.0074b524
lea eax, [ebp - 0x13c]
push ebx
push eax
call fcn.0074b558
add esp, 0xc
test eax, eax
jne 0x74bd97
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x14c]
push eax
mov eax, dword [ebp - 0x144]
add eax, dword [ebp - 0x148]
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0074e97c
add esp, 0xc
test eax, eax
jne 0x74bd90
mov eax, dword [ebp - 0x14c]
cmp eax, dword [ebp - 0x138]
jne 0x74bd90
xor ebx, ebx
and dword [ebp - 0x150], ebx
cmp dword [ebp - 0x1c4], ebx
je 0x74bcb4
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [ebp - 0x1c4]
shr eax, 3
test byte [eax + ecx], dl
je 0x74bcb4
mov ecx, dword [ebp - 0x1c0]
lea ebx, [ebp - 0x168]
mov eax, dword [ecx + edi*8]
mov dword [ebp - 0x168], eax
mov eax, dword [ecx + edi*8 + 4]
mov dword [ebp - 0x164], eax
cmp dword [ebp - 0x1bc], 0
je 0x74bcfa
mov ecx, edi
mov edx, 0x80
and ecx, 7
mov eax, edi
sar edx, cl
mov ecx, dword [ebp - 0x1bc]
shr eax, 3
test byte [eax + ecx], dl
je 0x74bcfa
mov ecx, dword [ebp - 0x1b8]
mov eax, dword [ecx + edi*8]
mov dword [ebp - 0x170], eax
mov eax, dword [ecx + edi*8 + 4]
mov dword [ebp - 0x16c], eax
lea eax, [ebp - 0x170]
jmp 0x74bd00
mov eax, dword [ebp - 0x150]
test ebx, ebx
jne 0x74bd08
test eax, eax
je 0x74bd18
push ebx
push 0
push eax
push dword [ebp - 0x13c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
lea eax, [ebp - 0x13c]
push eax
call fcn.0074e82a
pop ecx
test eax, eax
jne 0x74bd89
mov ebx, dword [ebp - 0x1cc]
test ebx, ebx
je 0x74bd74
mov eax, edi
mov ecx, edi
and ecx, 7
shr eax, 3
mov edx, 0x80
sar edx, cl
test byte [eax + ebx], dl
mov ebx, dword [ebp - 0x140]
je 0x74bd7a
mov eax, dword [ebp - 0x1c8]
mov edx, dword [eax + edi*4]
mov ecx, edx
mov eax, edx
and ecx, 0x7fff
and eax, 0xf0000000
cmove ecx, edx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x74bd7a
mov ebx, dword [ebp - 0x140]
inc edi
cmp edi, dword [ebp - 0x1e0]
jb 0x74bba2
jmp 0x74bda7
push str.can_not_close_output_file
jmp 0x74bd9c
push str.can_not_write_output_file
jmp 0x74bd9c
push str.can_not_open_output_file
call fcn.00434420
add esp, 4
push 0xb
pop esi
push dword [ebp - 0x144]
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x130]
pop ecx
pop ecx
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.0074d137
push dword [ebp - 0x184]
lea eax, [ebp - 0x134]
push eax
call dword [ebp - 0x130]
lea eax, [ebp - 0x174]
push eax
call fcn.0074e82a
add esp, 0x14
test esi, esi
jne 0x74bdf9
xor eax, eax
jmp 0x74be44
cmp esi, 4
jne 0x74be05
push str.decoder_doesnt_support_this_archive
jmp 0x74be1b
cmp esi, 2
jne 0x74be11
push str.can_not_allocate_memory
jmp 0x74be1b
cmp esi, 3
jne 0x74be25
push str.CRC_error
call fcn.00434420
add esp, 4
jmp 0x74be41
push 0
lea eax, [ebp - 0x24]
push eax
mov eax, esi
cdq
push edx
push eax
call fcn.0074b561
lea eax, [ebp - 0x24]
push eax
call fcn.00434420
add esp, 0x14
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00700c25
leave
ret