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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x17d18714
mov eax, dword fs:[0]
push eax
mov eax, 0x102c
call fcn.17d10470
mov eax, dword [0x17d29168]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, 0x17c971ac
xor esi, esi
mov dword [ebp - 0x1034], ecx
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1028], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1020], esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1038], esi
mov dword [ebp - 0x1018], 1
cmp dword [edi + 0x14], esi
je 0x17d0fced
cmp dword [ecx + 0x14], esi
je 0x17d0fced
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x101c], eax
jb 0x17d0f935
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push 0x80
push 3
push esi
push 5
push 0x80000000
push eax
call ebx
push eax
lea ecx, [ebp - 0x102c]
call fcn.17d0a32d
cmp dword [ebp - 0x1028], 0xffffffff
jne 0x17d0f9b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0f977
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push 0x17c991bc
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2c24
push 0x17d23160
lea eax, [ebp - 0x1014]
push eax
mov dword [ebp - 0x1014], esi
call sub.msvcrt.dll__CxxThrowException
push esi
push dword [ebp - 0x1028]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1014], eax
cmp eax, 0xffffffff
jne 0x17d0f9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0f9e1
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push 0x17c991bc
push 0x27
jmp 0x17d0f993
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0fa3b
test byte [eax + 0x1c], 4
je 0x17d0fa3b
cmp dword [edi + 0x18], 8
mov ecx, dword [ebp - 0x101c]
jb 0x17d0fa1f
mov ecx, dword [ecx]
push dword [ebp - 0x1014]
mov edi, 0x17c991bc
push ecx
push edi
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
jmp 0x17d0fa40
mov edi, 0x17c991bc
mov eax, dword [ebp - 0x1034]
cmp dword [eax + 0x18], 8
jb 0x17d0fa59
add eax, 4
mov dword [ebp - 0x101c], eax
mov eax, dword [eax]
jmp 0x17d0fa62
add eax, 4
mov dword [ebp - 0x101c], eax
push esi
push 0x80
push 4
push esi
push esi
push 0x10000000
push eax
call ebx
push eax
lea ecx, [ebp - 0x1024]
call fcn.17d0a32d
cmp dword [ebp - 0x1020], 0xffffffff
jne 0x17d0fac2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0fa9d
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x29
jmp 0x17d0f993
cmp dword [ebp - 0x1018], esi
jbe 0x17d0fb5c
push esi
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1028]
mov dword [ebp - 0x1018], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x17d0fbb1
cmp dword [ebp - 0x1018], esi
je 0x17d0fb5c
push dword [ebp + 0x10]
lea eax, [ebp - 0x1010]
push dword [ebp - 0x1018]
push eax
call fcn.17d0f486
push esi
lea eax, [ebp - 0x1038]
push eax
push dword [ebp - 0x1018]
lea eax, [ebp - 0x1010]
push eax
push dword [ebp - 0x1020]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x17d0fbea
mov eax, dword [ebp - 0x1018]
cmp dword [ebp - 0x1038], eax
jne 0x17d0fc23
cmp eax, esi
ja 0x17d0face
push esi
push dword [ebp - 0x1020]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1030], eax
cmp eax, 0xffffffff
jne 0x17d0fc4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0fb8c
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x2d
jmp 0x17d0f993
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0fbc5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x2a
jmp 0x17d0f993
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x17d0fbfe
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
mov eax, dword [0x17d26008]
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x2b
jmp 0x17d0f993
mov eax, dword [0x17d26008]
mov esi, 0x8007000d
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x2c
jmp 0x17d0f993
mov eax, dword [0x17d26008]
mov ebx, 0x17d26008
cmp eax, ebx
je 0x17d0fc8d
test byte [eax + 0x1c], 4
je 0x17d0fc8d
mov ecx, dword [ebp - 0x1034]
cmp dword [ecx + 0x18], 8
mov ecx, dword [ebp - 0x101c]
jb 0x17d0fc73
mov ecx, dword [ecx]
push dword [ebp - 0x1030]
push ecx
push edi
push 0x2e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.17ca2bb0
mov eax, dword [0x17d26008]
mov ecx, dword [ebp - 0x1030]
cmp ecx, dword [ebp - 0x1014]
je 0x17d0fcbb
mov esi, 0x8007000d
cmp eax, ebx
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push edi
push 0x2f
jmp 0x17d0f993
lea ecx, [ebp - 0x1024]
call fcn.17ceafa0
lea ecx, [ebp - 0x102c]
call fcn.17ceafa0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.17ce4923
leave
ret 0xc
mov eax, dword [0x17d26008]
mov esi, 0x80070057
cmp eax, 0x17d26008
je 0x17d0f99e
test byte [eax + 0x1c], 1
je 0x17d0f99e
push esi
push 0x17c991bc
push 0x25
jmp 0x17d0f993