Function at 0x1007b740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x105520d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], 0
test eax, eax
je 0x1007b9aa
mov dword [ebp - 0x60], esi
test edi, edi
jne 0x1007b7b8
lea ecx, [ebp - 0x48]
push ecx
push esi
call dword [sym.imp.MSVCR100.dll__stat64i32]
add esp, 8
test eax, eax
jne 0x1007b974
push 0x1021cb20
push esi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x1007b974
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x58], edx
jmp 0x1007b7bb
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], 0
movzx eax, word [ebx + 0x47acc6]
push eax
call fcn.10203b14
add esp, 4
cmp dword [ebx + 0x479ca4], 0
mov esi, eax
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x68], 0x14
jne 0x1007b98c
test edi, edi
je 0x1007b82b
mov ecx, dword [ebp + 0x18]
cmp dword [ebp - 0x4c], ecx
jae 0x1007b826
movzx edi, word [ebx + 0x47acc6]
mov eax, ecx
sub eax, dword [ebp - 0x4c]
sub edi, 0xc
cmp edi, eax
jle 0x1007b810
mov edi, eax
mov edx, dword [ebp - 0x60]
push edi
push edx
lea eax, [esi + 0xc]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [ebp - 0x60], edi
jmp 0x1007b84b
or edi, 0xffffffff
jmp 0x1007b84b
movzx edx, word [ebx + 0x47acc6]
mov ecx, dword [ebp - 0x5c]
push ecx
sub edx, 0xc
push edx
lea eax, [esi + 0xc]
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov edi, eax
add dword [ebp - 0x54], edi
cmp dword [ebp - 0x50], 0
jne 0x1007b864
test edi, edi
jns 0x1007b866
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x58]
jne 0x1007b95a
test edi, edi
jle 0x1007b989
cmp dword [ebx + 0x479ca4], 0
jne 0x1007b989
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
add edi, 0xc
mov dword [ebp - 0x70], edi
mov dword [esi + 4], edx
mov dword [esi + 8], eax
mov dword [esi], 0x5134b
xor edi, edi
movzx edx, byte [esi]
push 0
push 0x7d0
push edx
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x68]
push ecx
push esi
push edx
mov ecx, ebx
call fcn.10079ed0
inc edi
test al, al
je 0x1007b8c5
cmp dword [ebp - 8], 0
jne 0x1007b8c5
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
jne 0x1007b8fc
cmp di, 5
jl 0x1007b893
cmp dword [ebp - 0x50], 0
jne 0x1007b8de
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x14
add dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x479c98]
mov edi, dword [ebp - 0x58]
test eax, eax
je 0x1007b932
mov ecx, dword [ebx + 0x479ca0]
mov edx, dword [ebp - 0x54]
push ecx
mov ecx, dword [ebp - 0x6c]
push edi
push edx
mov edx, dword [ebp - 0x50]
neg edx
sbb edx, edx
push 0
not edx
and edx, dword [ebp - 0x64]
push 5
push ecx
push edx
call eax
add esp, 0x1c
mov eax, dword [ebp - 0x54]
push edi
push eax
push str._EFS_Write_Transferred__d____d_bytes
lea ecx, [ebx + 0xa5e4]
push 4
push ecx
call fcn.10115e20
add esp, 0x14
cmp edi, dword [ebp - 0x4c]
je 0x1007b989
mov edi, dword [ebp - 0x50]
jmp 0x1007b7c2
mov edx, dword [ebp - 0x5c]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test esi, esi
je 0x1007b974
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp - 0x50]
test edi, edi
jne 0x1007b99d
mov ecx, dword [ebp - 0x5c]
push ecx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
test esi, esi
je 0x1007b9aa
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10203cc8
mov esp, ebp
pop ebp
ret 0x14