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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1078f49
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1290
call fcn.010130eb
mov eax, dword [0x108a1e0]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x254
mov dword [ebp - 0x1294], eax
lea eax, [ebp - 0x1268]
push ebx
push eax
mov dword [ebp - 0x1298], esi
mov dword [ebp - 0x126c], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x1274], 0xffffffff
or dword [ebp - 0x1270], 0xffffffff
add esp, 0xc
push ebx
lea eax, [ebp - 0x126c]
push eax
push ebx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindFirstStreamW]
mov dword [ebp - 0x1280], eax
cmp eax, 0xffffffff
je 0x102fee4
mov edi, 0xffff
mov esi, 0x80070000
lea eax, [ebp - 0x126c]
push eax
push dword [ebp - 0x1280]
call dword [sym.imp.KERNEL32.dll_FindNextStreamW]
test eax, eax
jne 0x103e03c
push dword [ebp - 0x1280]
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0100207a
leave
ret 8
lea eax, [ebp - 0x1264]
push eax
lea ecx, [ebp - 0x1278]
call sub.MFC42u.dll_CString::CString
push 0x3a
lea ecx, [ebp - 0x1278]
mov byte [ebp - 4], 1
call sub.MFC42u.dll_CString::ReverseFind
cmp eax, 2
jl 0x103e260
push eax
push ebx
lea eax, [ebp - 0x129c]
push eax
lea ecx, [ebp - 0x1278]
call sub.MFC42u.dll_CString::Mid
push eax
lea ecx, [ebp - 0x1278]
mov byte [ebp - 4], 2
call fcn.0102e8fd
lea ecx, [ebp - 0x129c]
mov byte [ebp - 4], 1
call fcn.010027d6
lea ecx, [ebp - 0x1288]
call sub.MFC42u.dll_CString::CString_1
push dword [ebp - 0x1278]
lea eax, [ebp - 0x1288]
push dword [ebp - 0x1298]
mov byte [ebp - 4], 3
push 0x103e2d0
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0x10
lea ecx, [ebp - 0x1284]
call sub.MFC42u.dll_CString::CString_1
push dword [ebp - 0x1278]
lea eax, [ebp - 0x1284]
push dword [ebp - 0x1294]
mov byte [ebp - 4], 4
push 0x103e2d0
push eax
call sub.MFC42u.dll_CString::Format
add esp, 0x10
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x1288]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1274], eax
cmp eax, 0xffffffff
jne 0x103e134
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x103e12e
and eax, edi
or eax, esi
push eax
call sub.MFC42u.dll_AfxThrowOleException
push ebx
push 0x8000080
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x1284]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x1270], eax
cmp eax, 0xffffffff
jne 0x103e16f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x103e169
and eax, edi
or eax, esi
push eax
call sub.MFC42u.dll_AfxThrowOleException
mov dword [ebp - 0x127c], ebx
push ebx
lea eax, [ebp - 0x127c]
push eax
push 0x1000
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1274]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x103e1ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x103e1a7
and eax, edi
or eax, esi
push eax
call sub.MFC42u.dll_AfxThrowOleException
cmp dword [ebp - 0x127c], ebx
jbe 0x103e20c
push ebx
lea eax, [ebp - 0x128c]
push eax
push dword [ebp - 0x127c]
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x1270]
mov dword [ebp - 0x128c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x103e1f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x103e1ee
and eax, edi
or eax, esi
push eax
call sub.MFC42u.dll_AfxThrowOleException
mov eax, dword [ebp - 0x128c]
cmp eax, dword [ebp - 0x127c]
je 0x103e20c
push 0x8000ffff
call sub.MFC42u.dll_AfxThrowOleException
cmp dword [ebp - 0x127c], 0x1000
je 0x103e175
push dword [ebp - 0x1274]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x1270]
or dword [ebp - 0x1274], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x1270], 0xffffffff
lea ecx, [ebp - 0x1284]
mov byte [ebp - 4], 3
call fcn.010027d6
lea ecx, [ebp - 0x1288]
mov byte [ebp - 4], 1
call fcn.010027d6
lea ecx, [ebp - 0x1278]
mov byte [ebp - 4], bl
call fcn.010027d6
jmp 0x102febd