Function at 0x1006900
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 0x1006bc2
cmp eax, edi
ja 0x1006bc2
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 0x1006bc2
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 0x10069e4
mov dword [0x1010264], 0x82
jmp 0x1006bfb
cmp word [ebp - 0x408], 0xfeff
jne 0x10069f7
mov dword [0x1008020], edi
jmp 0x1006a0d
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.01005c76
mov ebx, 0x10019d8
mov dword [0x1010260], esi
mov edi, 0x1001a18
xor eax, eax
mov ax, word [edi]
push eax
call fcn.010058fc
test eax, eax
je 0x1006a59
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], si
jne 0x1006a3c
cmp word [edi], si
jne 0x1006b46
call fcn.01005c76
push 0x2e
mov word [ebp - 0x402], si
call fcn.010058fc
mov edi, dword [sym.imp.msvcrt.dll_wcstoul]
jmp 0x1006acc
lea eax, [ebp - 0x404]
push eax
call fcn.01005804
test eax, eax
je 0x1006bb6
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bb6
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.010058fc
test eax, eax
je 0x1006a7d
xor ebx, ebx
lea eax, [ebp - 0x404]
push eax
call fcn.01005804
test eax, eax
je 0x1006bb6
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1006bb6
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 0x1006ad2
cmp ecx, 0x500
je 0x1006b37
mov dword [0x1010264], 0x86
jmp 0x1006bfb
call fcn.01005c76
call fcn.010065d6
jmp 0x1006bfb
xor eax, eax
mov ax, word [ebx]
push eax
call fcn.010058fc
test eax, eax
je 0x1006b63
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
cmp word [ebx], si
jne 0x1006b46
cmp word [ebx], si
jne 0x1006bb6
push 0x34
call fcn.010058fc
mov edi, eax
call fcn.01005c76
lea eax, [ebp - 0x40c]
push eax
call fcn.01005804
test eax, eax
je 0x1006bfb
push dword [ebp - 0x40c]
call fcn.01005954
test eax, eax
je 0x1006bfb
cmp edi, esi
je 0x1006ba5
mov dword [0x1010260], 0x400
jmp 0x1006b3c
mov dword [0x1010260], 0x310
call fcn.01005d45
jmp 0x1006bfb
mov dword [0x1010264], 0x85
jmp 0x1006bfb
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 0x1006c0e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.01006c92
leave
ret 4