Function at 0x40351f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x45a764
call fcn.0043baec
sub esp, 0xa8
or dword [ebp - 0x18], 0xffffffff
push ebx
mov dword [ebp - 0x28], ecx
push esi
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov dword [ebp - 0x1c], ebx
call fcn.004503f1
mov ecx, dword [ebp + 0xc]
mov esi, 0x400
push esi
call fcn.00450896
mov edi, eax
push edi
push dword [ebp + 8]
call sub.LZ32.dll_GetExpandedNameA
cmp eax, 1
jne 0x4035a3
mov eax, dword [0x47f440]
mov dword [ebp - 0x10], eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ebx
call fcn.00450896
push eax
push edi
call fcn.00432162
pop ecx
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004508e5
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00450466
jmp 0x4035a5
mov byte [edi], bl
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004508e5
mov eax, dword [edi]
cmp dword [eax - 8], ebx
jne 0x4035c2
push dword [ebp + 8]
mov ecx, edi
call fcn.004505ef
push esi
mov ecx, edi
call fcn.00450896
push 0x5c
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
call fcn.0043c2a0
push 0x5c
mov esi, eax
push dword [ebp - 0x14]
call fcn.0043c2a0
add esp, 0x10
cmp esi, ebx
je 0x4035f6
cmp eax, ebx
je 0x4035f6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
push dword [ebp - 0x14]
call fcn.0043c2a0
pop ecx
cmp eax, ebx
pop ecx
je 0x403608
mov byte [eax], bl
push 0xffffffffffffffff
mov ecx, edi
call fcn.004508e5
push str..gua
mov ecx, edi
call fcn.00450842
push 0x88
lea eax, [ebp - 0xb4]
push ebx
push eax
call fcn.0043bed0
mov edi, dword [ebp - 0x28]
add esp, 0xc
cmp dword [edi], ebx
jne 0x403784
lea eax, [ebp - 0xb4]
push ebx
push eax
push dword [ebp + 8]
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x10], esi
jl 0x403757
push 2
push ebx
push esi
call sub.LZ32.dll_LZSeek
push ebx
push ebx
push esi
mov dword [ebp - 0x24], eax
call sub.LZ32.dll_LZSeek
cmp dword [edi], ebx
jne 0x403777
mov esi, dword [ebp + 0xc]
push ebx
push 0x80
push 2
mov eax, dword [esi]
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x403747
mov esi, 0x4000
push esi
call fcn.004500ea
cmp eax, ebx
pop ecx
mov dword [ebp - 0x20], eax
je 0x40373f
cmp dword [edi], ebx
jne 0x403768
push esi
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
call sub.LZ32.dll_LZRead
mov edi, eax
cmp edi, ebx
jbe 0x403711
mov eax, dword [ebp - 0x28]
cmp dword [eax], ebx
jne 0x403768
lea eax, [ebp - 0x2c]
push ebx
push eax
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403700
mov eax, dword [ebp - 0x2c]
cmp edi, eax
jne 0x403708
add dword [ebp - 0x14], eax
push esi
push dword [ebp - 0x20]
jmp 0x4036c1
push edi
push str.AU::DecompressFile:_WriteFile__lu__failed
jmp 0x40375f
push eax
push edi
push str.AU::DecompressFile:_Failed_to_write_all_bytes___lu____lu_
jmp 0x403734
push dword [ebp - 0x20]
call fcn.00450113
mov eax, dword [ebp - 0x14]
pop ecx
cmp eax, dword [ebp - 0x24]
jne 0x40372b
mov dword [ebp - 0x1c], 1
jmp 0x403768
push dword [ebp - 0x24]
push eax
push str.AU::DecompressFile:_Bad_decomp_file_size__got__lu__expected__lu_
push ebx
call fcn.00431e0d
add esp, 0x10
jmp 0x403768
push esi
push str.AU::DecompressFile:_new_BYTE__lu__failed
jmp 0x40375f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi]
push str.AU::DecompressFile:_CreateFile__s__failed___lu_
jmp 0x403734
push dword [ebp + 8]
push str.AU::DecompressFile:_LZOpenFile__s__failed
push ebx
call fcn.00431e0d
add esp, 0xc
cmp dword [ebp - 0x18], 0xffffffff
je 0x403777
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x10], ebx
jl 0x403784
push dword [ebp - 0x10]
call sub.LZ32.dll_LZClose
push dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push str.AU::DecompressFile__s_____s_returns__d
push ebx
call fcn.00431e0d
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 8