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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov word [ebp - 0x218], si
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
mov ebx, 0x104
push ebx
push esi
push dword [ebp + 8]
mov edi, 0x80
push esi
mov dword [0x100f244], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, esi
je 0x100664d
cmp eax, ebx
ja 0x100664d
push esi
push edi
push 3
push esi
xor edi, edi
inc edi
push edi
push 0x80000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x100fa64], eax
je 0x100664d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
div ecx
push esi
mov dword [0x100fa78], esi
mov dword [0x100fa7c], esi
mov dword [0x100fa74], eax
lea eax, [ebp - 0x10]
push eax
push 2
lea eax, [ebp + 0xa]
push eax
push dword [0x100fa64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100648d
mov dword [0x100f244], 0x82
jmp 0x1006686
cmp word [ebp + 0xa], 0xfeff
jne 0x100649d
mov dword [section..data], edi
jmp 0x10064b3
push edi
push esi
push 0xfffffffffffffffe
push dword [0x100fa64]
mov dword [section..data], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ecx, ecx
cmp dword [section..data], esi
mov eax, 0x200
setne cl
xor edx, edx
inc ecx
div ecx
mov dword [0x100fa68], eax
call fcn.01005837
mov ebx, 0x10019c8
mov dword [0x100f240], esi
mov edi, 0x1001a08
xor eax, eax
mov ax, word [edi]
push eax
call fcn.01005535
test eax, eax
je 0x10064ff
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], si
jne 0x10064e2
cmp word [edi], si
jne 0x10065d7
call fcn.01005837
push 0x2e
mov word [ebp - 2], si
call fcn.01005535
mov edi, dword [sym.imp.msvcrt.dll_wcstoul]
jmp 0x1006566
lea eax, [ebp - 4]
push eax
call fcn.01005444
test eax, eax
je 0x1006641
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006641
push 0xa
lea eax, [ebp - 4]
push esi
push eax
call edi
mov ecx, dword [0x100f240]
shl ecx, 4
add esp, 0xc
add ecx, eax
push 0x2e
mov dword [0x100f240], ecx
call fcn.01005535
test eax, eax
je 0x1006520
xor ebx, ebx
lea eax, [ebp - 4]
push eax
call fcn.01005444
test eax, eax
je 0x1006641
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006641
push 0xa
lea eax, [ebp - 4]
push esi
push eax
call edi
mov ecx, dword [0x100f240]
shl ecx, 4
add ecx, eax
add esp, 0xc
inc ebx
cmp ebx, 2
mov dword [0x100f240], ecx
jb 0x100656c
cmp ecx, 0x500
je 0x10065c8
mov dword [0x100f244], 0x86
jmp 0x1006686
call fcn.01005837
call fcn.010060d5
jmp 0x1006686
xor eax, eax
mov ax, word [ebx]
push eax
call fcn.01005535
test eax, eax
je 0x10065f4
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
cmp word [ebx], si
jne 0x10065d7
cmp word [ebx], si
jne 0x1006641
push 0x34
call fcn.01005535
mov edi, eax
call fcn.01005837
lea eax, [ebp - 8]
push eax
call fcn.01005444
test eax, eax
je 0x1006686
push dword [ebp - 8]
call fcn.0100557d
test eax, eax
je 0x1006686
cmp edi, esi
je 0x1006630
mov dword [0x100f240], 0x400
jmp 0x10065cd
mov dword [0x100f240], 0x310
call fcn.010058ee
jmp 0x1006686
mov dword [0x100f244], 0x85
jmp 0x1006686
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x40c]
push 0x1001ac8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x100fa64], esi
mov dword [0x100f244], 0x81
mov eax, dword [0x100fa64]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x1006699
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4