Function at 0x10015980
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10344c71
mov eax, dword fs:[0]
push eax
sub esp, 0x3d4
mov eax, dword [0x1040706c]
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 dword [ebp - 0x3e0], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3d8], esi
call fcn.10107920
push eax
lea ecx, [ebp - 0x94]
call fcn.100fc910
mov dword [ebp - 4], 0
call fcn.10107930
mov ecx, eax
call fcn.100fdad0
test al, al
je 0x10015ab3
push esi
lea ecx, [ebp - 0x94]
call fcn.100fced0
push 0
push 0x80
push 3
push 0
push 1
push bind
lea ecx, [ebp - 0x94]
call fcn.100fcd90
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10015a33
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], eax
call fcn.100fcb40
jmp 0x10015cbc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x10015a59
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.100fcb40
jmp 0x10015cbc
push edi
mov dword [ebp - 0x3d0], 0
call fcn.100f9ee8
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3d0]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d0], edi
je 0x10015ca6
push esi
call fcn.100f9ef1
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.100fcb40
jmp 0x10015cbc
call fcn.10107930
push eax
lea ecx, [ebp - 0x94]
call fcn.100fcea0
call fcn.10107950
push eax
lea ecx, [ebp - 0x19c]
call fcn.100fc910
mov byte [ebp - 4], 1
call fcn.10107d60
test al, al
je 0x10015aee
call fcn.10107940
mov ebx, eax
jmp 0x10015b85
lea ecx, [ebp - 0x19c]
call fcn.100fcd90
mov edi, eax
test edi, edi
je 0x10015b59
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
mov dword [ebp - 0x3d0], eax
inc eax
push eax
mov dword [ebp - 0x3d4], eax
call fcn.100f9ee8
mov esi, eax
add esp, 4
test esi, esi
je 0x10015b59
push dword [ebp - 0x3d4]
push 0
push esi
call fcn.101d2900
add esp, 0xc
push 0
push 0
push dword [ebp - 0x3d0]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call ebx
jmp 0x10015b5b
xor esi, esi
push esi
lea ecx, [ebp - 0x94]
call fcn.100fcd90
push eax
call fcn.10112960
add esp, 8
mov ebx, eax
test esi, esi
je 0x10015b7f
push esi
call fcn.100f9ef1
add esp, 4
mov esi, dword [ebp - 0x3d8]
test ebx, ebx
jne 0x10015bab
lea ecx, [ebp - 0x19c]
call fcn.100fcb40
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.100fcb40
jmp 0x10015cbc
push 0xffffffffffffffff
push esi
lea ecx, [ebp - 0x118]
mov dword [ebp - 0x3dc], 0
call fcn.100fc950
push 0x103d3954
push 0x103d2860
lea ecx, [ebp - 0x118]
mov byte [ebp - 4], 2
call fcn.100fdec0
lea eax, [ebp - 0x3cc]
push eax
lea eax, [ebp - 0x3dc]
push eax
push 1
lea ecx, [ebp - 0x118]
call fcn.100fcd90
push eax
push ebx
call fcn.10111c50
add esp, 0x14
test eax, eax
je 0x10015c15
lea ecx, [ebp - 0x118]
call fcn.100fcb40
jmp 0x10015b89
mov edi, dword [ebp - 0x1a0]
test edi, edi
jne 0x10015c2f
lea ecx, [ebp - 0x118]
call fcn.100fcb40
jmp 0x10015b89
push edi
call fcn.100f9ee8
push edi
mov esi, eax
push esi
push dword [ebp - 0x3dc]
push ebx
call fcn.101131f0
add esp, 0x14
test eax, eax
je 0x10015c7e
cmp eax, 0x600
je 0x10015c7e
push esi
call fcn.100f9ef1
add esp, 4
call fcn.10107d60
test al, al
jne 0x10015c6e
push ebx
call fcn.10111870
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.100fcb40
jmp 0x10015b89
call fcn.10107d60
test al, al
jne 0x10015c90
push ebx
call fcn.10111870
add esp, 4
lea ecx, [ebp - 0x118]
call fcn.100fcb40
lea ecx, [ebp - 0x19c]
call fcn.100fcb40
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
call fcn.100fcb40
test esi, esi
jne 0x10015d3b
push 0
push 0x80
push 3
push 0
push 1
push bind
push dword [ebp - 0x3d8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10015d37
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x10015d37
push edi
mov dword [ebp - 0x3d4], 0
call fcn.100f9ee8
add esp, 4
mov esi, eax
lea eax, [ebp - 0x3d4]
push 0
push eax
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3d4], edi
je 0x10015d33
push esi
call fcn.100f9ef1
add esp, 4
xor al, al
jmp 0x10015d61
test esi, esi
jne 0x10015d3b
xor al, al
jmp 0x10015d61
mov ecx, dword [ebp - 0x3e0]
cmp byte [ecx + 0x678], 0
je 0x10015d54
mov eax, dword [ecx]
push edi
push esi
call dword [eax + 0x194]
push 1
push esi
call fcn.100f99db
add esp, 8
mov al, 1
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.100f99ca
mov esp, ebp
pop ebp
ret 4