Function at 0x101f6ff
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x28e4
call fcn.0102c870
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push edi
push 0x1001a00
push dword [ebp + 0xc]
lea eax, [ebp - 0x16bc]
push eax
call esi
push dword [ebp + 0x14]
mov edi, 0x103e000
push edi
lea eax, [ebp - 0xe9c]
push eax
call esi
push 0x1004764
push edi
lea eax, [ebp - 0x10a4]
push eax
call esi
lea eax, [ebp - 0x10a4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14b4]
push dword [ebp + 0x14]
push 0x1004708
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea eax, [ebp - 0xe9c]
push eax
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x1001ccc
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
cmp word [esi], bx
jne 0x101f7c5
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x101f7c5
push 0x40
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0102eede
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_57]
mov esi, dword [sym.imp.SHLWAPI.dll_Ordinal_298]
lea eax, [ebp - 0x2ec]
push eax
push 0x10046f4
push 0x10046e0
mov edi, 0x10019cc
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x10046d8
push 0x10046c0
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x10046ac
push 0x1004694
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x1004670
push 0x1004640
mov edi, 0x1004618
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x10045fc
push 0x10045cc
push edi
call esi
push 0x104
lea eax, [ebp - 0x1acc]
push eax
push 0x76d9
push dword [0x103d7d0]
call dword [sym.imp.SHLWAPI.dll_Ordinal_107]
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x1acc]
push eax
push 0x10045c0
push 0x10018b0
call esi
push 0x10034f4
lea eax, [ebp - 0xe4]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [ebp - 0x2ec]
push eax
push 0x10045a4
push 0x1004590
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
push edi
push 0x100456c
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x1004510
push 0x10044f0
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp + 0x10]
push 0x10045a4
push 0x1003dfc
call esi
lea eax, [ebp - 0x2ec]
push eax
push ebx
push ebx
push ebx
call esi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x2ec]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_52]
push 2
push ebx
push ebx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str._r_n_ProgramFilesDir__r_nHKLM_SoftwareMicrosoftWindowsCurrentVersion_ProgramFilesDir___24__r_n
call edi
push eax
push str._r_n_ProgramFilesDir__r_nHKLM_SoftwareMicrosoftWindowsCurrentVersion_ProgramFilesDir___24__r_n
push dword [ebp - 4]
call fcn.0102e291
push str._r_n_IeFilesDir__r_nHKLM__SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE___Path_____24_Program_Files_IEDIR___r_n
call edi
push eax
push str._r_n_IeFilesDir__r_nHKLM__SoftwareMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE___Path_____24_Program_Files_IEDIR___r_n
push dword [ebp - 4]
call fcn.0102e291
push 0x12
push 0x10044c8
push dword [ebp - 4]
call fcn.0102e291
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_52]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x101f99b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x80004005
jmp 0x101ffc9
mov eax, dword [0x10922c8]
cmp eax, ebx
jne 0x101f9b6
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [0x10922c8], eax
push ebx
push ebx
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea eax, [ebp - 0x53c]
push eax
lea eax, [ebp - 0x16bc]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_65]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x101facf
cmp word [ebp - 0x510], bx
je 0x101fa9f
push 0x1001b34
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x101fa9f
push 0x1001b2c
lea eax, [ebp - 0x510]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x101fa9f
test byte [ebp - 0x53c], 0x10
jne 0x101fa9f
push 1
push 0x1002634
push dword [ebp - 8]
call fcn.0102e291
lea eax, [ebp - 0x510]
push eax
call edi
push eax
lea eax, [ebp - 0x510]
push eax
push dword [ebp - 8]
call fcn.0102e291
push 3
push 0x10044c0
push dword [ebp - 8]
call fcn.0102e291
push 1
push 0x1002634
push dword [ebp - 4]
call fcn.0102e291
lea eax, [ebp - 0x510]
push eax
call edi
push eax
lea eax, [ebp - 0x510]
push eax
push dword [ebp - 4]
call fcn.0102e291
push 3
push 0x10044c0
push dword [ebp - 4]
call fcn.0102e291
lea eax, [ebp - 0x53c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_Ordinal_341]
test eax, eax
jne 0x101f9eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x101f9eb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x101fca6
cmp word [eax], bx
je 0x101fca6
push 0x10044a8
push 0x103e000
lea eax, [ebp - 0x12ac]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
push 0x80
push 3
push ebx
xor eax, eax
push ebx
mov ecx, 0x200
lea edi, [ebp - 0x28e4]
rep stosd dword es:[edi], eax
push 0xc0000000
lea eax, [ebp - 0x12ac]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_52]
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x800
lea ecx, [ebp - 0x28e4]
push ecx
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x28e4]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x10]
call edi
mov edi, dword [ebp + 0x1c]
mov ax, word [edi]
cmp ax, 0x3e
je 0x101fb91
cmp ax, 0x3c
je 0x101fb91
lea eax, [ebp - 0x2ec]
push eax
push ebx
push ebx
push 0x1004490
call esi
mov edi, 0x10018b0
jmp 0x101fbc3
lea eax, [ebp - 0x2ec]
push eax
push 0x1004490
push 0x1003ca4
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
add edi, 2
push edi
push 0x1004480
mov edi, 0x10018b0
push edi
call esi
push 0x108f970
push 0x1004474
lea eax, [ebp - 0x67c]
push 0x50
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push dword [ebp + 0x1c]
lea eax, [ebp - 0x18c4]
push 0x1004410
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x20
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp + 0x18]
push 0x10043f8
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp + 0x20]
push 0x10043e4
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x67c]
push eax
push 0x10043d0
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp + 0x1c]
push 0x10019f4
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
lea eax, [ebp - 0x18c4]
push eax
push 0x10043b4
push edi
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x100439c
push 0x1003514
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
push 0x10041dc
push 0x1003480
lea eax, [ebp - 0xe4]
push eax
call esi
lea eax, [ebp - 0x2ec]
push eax
push dword [ebp + 0x10]
call fcn.0101f4a8
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x101fcaf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x103e000
push str..Set_SourceDir_s_r_nsetup.inf__INFNO_r_ninstall.inf__INFNO
lea eax, [ebp - 0x20e4]
push 0x30c
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [ebp - 0x20e4]
push eax
call edi
push eax
lea eax, [ebp - 0x20e4]
push eax
push dword [ebp - 8]
call fcn.0102e291
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x2ec]
push eax
push ebx
push ebx
push ebx
call esi
push dword [ebp + 0x14]
lea eax, [ebp - 0x5dc]
push 0x1004370
push 0x50
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
push 0x100435c
push 0x103e000
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x884]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_57]
lea eax, [ebp - 0x884]
push eax
lea eax, [ebp - 0x5dc]
push eax
push 0x1001744
push 0x1004338
call esi
lea eax, [ebp - 0x884]
push eax
push ebx
push ebx
push ebx
call esi
push dword [ebp + 0xc]
call fcn.0102c075
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
shr eax, 0xa
push 0xf
mov dword [ebp + 0x20], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
push 0x1004320
mov dword [ebp - 0x4c], eax
mov edi, 0x103e000
push edi
lea eax, [ebp - 0xc94]
push eax
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x48], 0x10038b8
call esi
push ebx
push 0x80
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0xc94]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_52]
cmp eax, 0xffffffff
jne 0x101fdd7
mov dword [ebp - 0x44], 0x1004320
jmp 0x101fde7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xc94]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x14b4]
push 0x1004310
mov dword [ebp - 0x40], eax
push edi
lea eax, [ebp - 0xa8c]
push eax
call esi
push ebx
lea eax, [ebp - 0xa8c]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_50]
lea eax, [ebp - 0xa8c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xa8c]
push eax
mov dword [ebp - 0x38], 6
call dword [sym.imp.SHLWAPI.dll_Ordinal_137]
sub esp, 0x3c
push 0xf
pop ecx
mov edi, esp
lea esi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
call fcn.0102c49a
push 0x103e000
call dword [sym.imp.SHLWAPI.dll_Ordinal_137]
mov eax, dword [0x103e87c]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [0x103e87c]
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push dword [ebp + 0x14]
push eax
call dword [ecx + 0x18]
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x101fe81
push dword [ebp + 0xc]
mov ecx, eax
call fcn.01007c36
mov esi, eax
jmp 0x101fe83
xor esi, esi
push dword [ebp + 0x1c]
mov eax, dword [esi]
push esi
call dword [eax + 0x38]
push dword [ebp + 0x18]
mov eax, dword [esi]
push esi
call dword [eax + 0x3c]
mov eax, dword [esi]
push 3
push dword [ebp + 0x14]
push ebx
push esi
call dword [eax + 0x74]
mov eax, dword [esi]
push 0x108f970
push esi
call dword [eax + 0x44]
mov eax, dword [esi]
push ebx
push 0x10016f0
push 0x10042f8
push ebx
push esi
call dword [eax + 0x40]
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x70]
push 0x10468b8
push esi
call fcn.010101cd
mov eax, dword [esi]
push 0x10035f8
push esi
call dword [eax + 0x64]
mov eax, dword [esi]
push 0x343
push esi
call dword [eax + 0x6c]
mov eax, dword [esi]
push ebx
push esi
call dword [eax + 0x60]
mov eax, dword [0x103e87c]
mov ecx, dword [eax]
lea edx, [ebp + 0x10]
push edx
mov edi, 0x10042dc
push edi
push eax
call dword [ecx + 4]
test eax, eax
mov eax, dword [esi]
push 0x5c
jl 0x101ff65
push edi
push esi
call dword [eax + 0x5c]
push 1
mov ecx, esi
call fcn.0101021e
mov eax, dword [0x103e87c]
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push edi
push eax
call dword [ecx + 0x18]
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x101ff43
push dword [ebp + 0xc]
mov ecx, eax
call fcn.01007c36
mov esi, eax
jmp 0x101ff45
xor esi, esi
push dword [ebp + 0x14]
mov eax, dword [esi]
push esi
call dword [eax + 0x88]
push 1
mov ecx, esi
call fcn.0101021e
lea edx, [ebp + 0xc]
push edx
push 0x10042bc
jmp 0x101ff7d
mov edi, 0x10026d8
push edi
push esi
call dword [eax + 0x5c]
push 1
mov ecx, esi
call fcn.0101021e
lea edx, [ebp + 0xc]
push edx
push edi
mov eax, dword [0x103e87c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
push 0xc
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, ebx
pop ecx
je 0x101ffa0
push dword [ebp + 0xc]
mov ecx, eax
call fcn.01007c36
mov ebx, eax
push dword [ebp + 0x14]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x88]
mov ecx, ebx
push 1
call fcn.0101021e
push dword [ebp + 0x20]
lea eax, [ebp - 0xe9c]
push dword [ebp + 0x14]
push eax
call fcn.0101ad25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x1c