Function at 0x40b8c0
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c8
mov eax, dword [0x431618]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0
push str.exe
push 6
push eax
push 0x427440
push 0
lea ecx, [ebp - 0x690]
mov dword [ebp - 0x6c8], edi
mov dword [ebp - 0x6b8], 0
call fcn.00408200
xor eax, eax
mov dword [ebp - 0x6b4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00419904
mov eax, dword [0x431014]
add esp, 4
mov dword [ebp - 0x694], eax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [0x431014]
mov dword [ebp - 0x6a0], eax
lea eax, [ebp - 0x20c]
shr eax, 0x10
test eax, eax
lea eax, [ebp - 0x20c]
jne 0x40b96d
movzx eax, ax
lea ecx, [ebp - 0x6a0]
push eax
call fcn.00409a10
jmp 0x40b9ad
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
test esi, esi
je 0x40b9ad
push esi
lea ecx, [ebp - 0x6a0]
call fcn.00408930
test eax, eax
je 0x40b9ad
lea eax, [esi + esi]
push eax
lea ecx, [ebp - 0x20c]
add eax, 2
push ecx
push eax
push dword [ebp - 0x6a0]
call fcn.0040cb20
push eax
call fcn.00408a20
add esp, 0x14
call fcn.004198e3
push eax
lea eax, [ebp - 0x694]
push str.sibt_d_
push eax
call fcn.00409150
mov eax, dword [ebp - 0x694]
lea ecx, [ebp - 0x6a0]
add esp, 0xc
push eax
push dword [eax - 8]
call fcn.00408e20
mov esi, dword [ebp - 0x6a0]
lea eax, [ebp - 0x694]
push esi
push str.cmd.exe__c_rd__s__q___s_
push eax
call fcn.00409150
push 1
push dword [ebp - 0x694]
call fcn.00411100
push esi
lea eax, [ebp - 0x694]
push str.cmd.exe__c_md___s_
push eax
call fcn.00409150
push 1
push dword [ebp - 0x694]
call fcn.00411100
add esp, 0x28
mov dword [ebp - 0x6a8], 0xffffffff
lea ecx, [ebp - 0x6a8]
mov dword [ebp - 0x6a4], 0
push 0
push edi
call fcn.0040b0c0
test eax, eax
jne 0x40ba7a
push 0x427e34
push edi
push 0x4284e4
lea eax, [ebp - 0x694]
push str._s_s_s
push eax
call fcn.00409150
add esp, 0x14
mov ecx, ebx
push dword [ebp - 0x694]
call fcn.00408730
jmp 0x40bf75
lea eax, [ebp - 0x6bc]
push eax
push dword [ebp - 0x6a8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x6c0], eax
cmp eax, 0xffffffff
jne 0x40baa4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x6c0]
push eax
mov dword [ebp - 0x6b0], eax
call fcn.00414eeb
add esp, 4
mov dword [ebp - 0x6a0], eax
test eax, eax
je 0x40bf75
mov ecx, dword [ebp - 0x6b0]
test ecx, ecx
je 0x40bae2
push 0
lea edx, [ebp - 0x6bc]
push edx
push ecx
push eax
push dword [ebp - 0x6a8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x6a8]
cmp eax, 0xffffffff
je 0x40baf4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x6a0]
lea eax, [ebp - 0x6c4]
push eax
push 1
lea eax, [ebp - 0x6b0]
mov dword [ebp - 0x6a8], 0xffffffff
push eax
push edi
mov dword [ebp - 0x6a4], 0
call fcn.004105f0
mov eax, dword [ebp - 0x6c4]
push 2
push 0x4284f0
push dword [ebp - 0x6b0]
add eax, edi
push eax
call fcn.00411770
add esp, 0x20
mov dword [ebp - 0x6bc], eax
test eax, eax
jne 0x40bb5d
push 0x4284f4
mov ecx, ebx
call fcn.00408730
jmp 0x40bf54
mov eax, dword [0x431014]
push str.sib_orgi.7z
mov dword [ebp - 0x69c], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.sib_orgi.7z
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x69c]
call fcn.00408d80
mov edi, dword [ebp - 0x69c]
lea ecx, [ebp - 0x6a8]
push 0x1001
push edi
call fcn.0040b0c0
test eax, eax
lea eax, [edi - 0xc]
sete byte [ebp - 0x6a9]
cmp eax, dword [0x431010]
je 0x40bbcb
add edi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40bbcb
push edi
call fcn.00414ef4
add esp, 4
cmp byte [ebp - 0x6a9], 0
mov ecx, ebx
je 0x40bbe5
push 0x428520
call fcn.00408730
jmp 0x40bf54
push 0x428538
call fcn.00408730
mov eax, dword [ebp - 0x6b0]
mov ecx, dword [ebp - 0x6bc]
sub eax, ecx
add eax, dword [ebp - 0x6a0]
je 0x40bc1c
push 0
lea edx, [ebp - 0x69c]
push edx
push eax
push ecx
push dword [ebp - 0x6a8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x6a8]
call fcn.00408d50
mov eax, dword [0x431014]
push 0x42854c
mov dword [ebp - 0x698], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x42854c
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x698]
call fcn.00408d80
push dword [ebp - 0x698]
push 0x42855c
push 0xcf
call fcn.00411070
add esp, 0xc
lea ecx, [ebp - 0x698]
mov edi, eax
call fcn.00408440
mov ecx, ebx
test edi, edi
jne 0x40bc8c
push 0x428564
call fcn.00408730
jmp 0x40bf54
push 0x42857c
call fcn.00408730
mov eax, dword [0x431014]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.setup_
mov dword [ebp - 0x698], eax
call edi
push str.setup_
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x698]
call fcn.00408d80
push dword [ebp - 0x6c8]
lea eax, [ebp - 0x694]
push dword [ebp - 0x698]
push esi
push str.__s7zr.exe__x__o__s____s_
push eax
call fcn.00409150
add esp, 0x14
lea ecx, [ebp - 0x698]
call fcn.00408440
push 1
push dword [ebp - 0x694]
call fcn.00411100
mov eax, dword [0x431014]
add esp, 8
mov dword [ebp - 0x698], eax
push str.setup_
call edi
push str.setup_
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x698]
call fcn.00408d80
mov ecx, dword [ebp + 0x14]
push dword [ebp - 0x698]
lea ecx, [ebx + ecx]
call dword [ebp + 0x10]
lea ecx, [ebp - 0x698]
mov edi, eax
call fcn.00408440
test edi, edi
je 0x40bf54
push 0x4285d0
mov ecx, ebx
call fcn.00408730
mov eax, dword [0x431014]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.setup
mov dword [ebp - 0x69c], eax
call edi
push str.setup
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x69c]
call fcn.00408d80
mov eax, dword [0x431014]
push str.setup.7z
mov dword [ebp - 0x698], eax
call edi
push str.setup.7z
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x698]
call fcn.00408d80
push dword [ebp - 0x69c]
lea eax, [ebp - 0x694]
push dword [ebp - 0x698]
push esi
push str.__s7zr.exe__a___s____s____m0BCJ2__m1LZMA:d25:fb255__m2LZMA:d19__m3LZMA:d19__mb0:1__mb0s1:2__mb0s2:3__mx9__mmt__r
push eax
call fcn.00409150
add esp, 0x14
lea ecx, [ebp - 0x698]
call fcn.00408440
lea ecx, [ebp - 0x69c]
call fcn.00408440
push 1
push dword [ebp - 0x694]
call fcn.00411100
mov eax, dword [0x431014]
add esp, 8
mov dword [ebp - 0x69c], eax
push str.setup.7z
call edi
push str.setup.7z
push eax
push esi
push dword [esi - 8]
lea ecx, [ebp - 0x69c]
call fcn.00408d80
push 0
push dword [ebp - 0x69c]
lea ecx, [ebp - 0x6a8]
call fcn.0040b0c0
lea ecx, [ebp - 0x69c]
mov edi, eax
call fcn.00408440
test edi, edi
jne 0x40be4d
push 0x4286f4
mov ecx, ebx
call fcn.00408730
jmp 0x40bf54
lea ecx, [ebp - 0x6a8]
call fcn.004096a0
mov edi, eax
push edi
call fcn.00414eeb
add esp, 4
mov dword [ebp - 0x6b4], eax
test eax, eax
je 0x40bf54
push edi
push eax
lea ecx, [ebp - 0x6a8]
call fcn.0040b270
lea ecx, [ebp - 0x6a8]
call fcn.00408d50
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x690]
call fcn.00408fc0
cmp eax, 1
je 0x40beb1
push str._u7b
mov ecx, ebx
call fcn.00408730
jmp 0x40bf54
push 0x1001
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x6a8]
call fcn.0040b0c0
mov ecx, ebx
test eax, eax
jne 0x40beda
push 0x428728
call fcn.00408730
jmp 0x40bf54
push str.ck_W
call fcn.00408730
mov eax, dword [ebp - 0x6a0]
mov ecx, dword [ebp - 0x6bc]
sub ecx, eax
push ecx
push eax
lea ecx, [ebp - 0x6a8]
call fcn.0040caa0
mov eax, dword [ebp - 0x6b4]
lea ecx, [ebp - 0x6a8]
push edi
push eax
call fcn.0040caa0
lea ecx, [ebp - 0x6a8]
call fcn.00408d50
lea eax, [ebp - 0x414]
push eax
push 0x428758
lea eax, [ebp - 0x694]
push str._s_s
push eax
call fcn.00409150
add esp, 0x10
mov ecx, ebx
push dword [ebp - 0x694]
call fcn.00408730
mov dword [ebp - 0x6b8], 1
push dword [ebp - 0x6a0]
call fcn.00414ef4
mov eax, dword [ebp - 0x6b4]
add esp, 4
test eax, eax
je 0x40bf75
push eax
call fcn.00414ef4
add esp, 4
push esi
lea eax, [ebp - 0x694]
push str.cmd.exe__c_rd__s__q___s_
push eax
call fcn.00409150
mov edi, dword [ebp - 0x694]
push 1
push edi
call fcn.00411100
mov eax, dword [ebp - 0x6a8]
add esp, 0x14
cmp eax, 0xffffffff
je 0x40bfaa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0xc]
or ecx, 0xffffffff
cmp eax, dword [0x431010]
je 0x40bfd2
add esi, 0xfffffff4
mov eax, ecx
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40bfd2
push esi
call fcn.00414ef4
add esp, 4
or ecx, 0xffffffff
lea eax, [edi - 0xc]
cmp eax, dword [0x431010]
je 0x40bff2
add edi, 0xfffffff4
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x40bff2
push edi
call fcn.00414ef4
add esp, 4
mov ecx, dword [ebp - 0x67c]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x40c005
push ecx
call fcn.004160e1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x6b8]
xor ecx, ebp
call fcn.00414e7e
mov esp, ebp
pop ebp
ret 0x10