Function at 0x10068f5
Capabilities:
Get file size
Print debug messages
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1008028]
push ebx
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], eax
xor esi, esi
xor eax, eax
mov word [ebp - 0x20c], si
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
push esi
push edx
mov ebx, 0x80
push esi
mov dword [0x1010264], ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, esi
je 0x1006bb7
cmp eax, edi
ja 0x1006bb7
push esi
push ebx
push 3
push esi
xor edi, edi
inc edi
push edi
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1010a84], eax
je 0x1006bb7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
div ecx
push esi
mov dword [0x1010a98], esi
mov dword [0x1010a9c], esi
mov dword [0x1010a94], eax
lea eax, [ebp - 0x414]
push eax
push 2
lea eax, [ebp - 0x408]
push eax
push dword [0x1010a84]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10069d9
mov dword [0x1010264], 0x82
jmp 0x1006bf0
cmp word [ebp - 0x408], 0xfeff
jne 0x10069ec
mov dword [0x1008020], edi
jmp 0x1006a02
push edi
push esi
push 0xfffffffffffffffe
push dword [0x1010a84]
mov dword [0x1008020], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp dword [0x1008020], esi
mov eax, 0x200
setne cl
xor edx, edx
inc ecx
div ecx
mov dword [0x1010a88], eax
call fcn.01005c6b
mov ebx, 0x10019d8
mov dword [0x1010260], esi
mov edi, 0x1001a18
xor eax, eax
mov ax, word [edi]
push eax
call fcn.010058f1
test eax, eax
je 0x1006a4e
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], si
jne 0x1006a31
cmp word [edi], si
jne 0x1006b3b
call fcn.01005c6b
push 0x2e
mov word [ebp - 0x402], si
call fcn.010058f1
mov edi, dword [sym.imp.msvcrt.dll_wcstoul]
jmp 0x1006ac1
lea eax, [ebp - 0x404]
push eax
call fcn.010057f9
test eax, eax
je 0x1006bab
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bab
push 0xa
lea eax, [ebp - 0x404]
push esi
push eax
call edi
mov ecx, dword [0x1010260]
shl ecx, 4
add esp, 0xc
add ecx, eax
push 0x2e
mov dword [0x1010260], ecx
call fcn.010058f1
test eax, eax
je 0x1006a72
xor ebx, ebx
lea eax, [ebp - 0x404]
push eax
call fcn.010057f9
test eax, eax
je 0x1006bab
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bab
push 0xa
lea eax, [ebp - 0x404]
push esi
push eax
call edi
mov ecx, dword [0x1010260]
shl ecx, 4
add ecx, eax
add esp, 0xc
inc ebx
cmp ebx, 2
mov dword [0x1010260], ecx
jb 0x1006ac7
cmp ecx, 0x500
je 0x1006b2c
mov dword [0x1010264], 0x86
jmp 0x1006bf0
call fcn.01005c6b
call fcn.010065cb
jmp 0x1006bf0
xor eax, eax
mov ax, word [ebx]
push eax
call fcn.010058f1
test eax, eax
je 0x1006b58
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
cmp word [ebx], si
jne 0x1006b3b
cmp word [ebx], si
jne 0x1006bab
push 0x34
call fcn.010058f1
mov edi, eax
call fcn.01005c6b
lea eax, [ebp - 0x40c]
push eax
call fcn.010057f9
test eax, eax
je 0x1006bf0
push dword [ebp - 0x40c]
call fcn.01005949
test eax, eax
je 0x1006bf0
cmp edi, esi
je 0x1006b9a
mov dword [0x1010260], 0x400
jmp 0x1006b31
mov dword [0x1010260], 0x310
call fcn.01005d3a
jmp 0x1006bf0
mov dword [0x1010264], 0x85
jmp 0x1006bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x400]
push 0x1001ad8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x1010a84], esi
mov dword [0x1010264], 0x81
mov eax, dword [0x1010a84]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1006c03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.01006c87
leave
ret 4