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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x101d044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x414], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x408], eax
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll__KSuvt
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov esi, 0x104
push esi
push ebx
push dword [ebp - 0x40c]
mov edi, 0x80
push ebx
mov dword [0x101d068], edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebx
je 0x100268e
cmp eax, esi
ja 0x100268e
push ebx
push edi
push 3
push ebx
xor esi, esi
inc esi
push esi
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x105d100], eax
cmp eax, 0xffffffff
je 0x100268e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
div ecx
push ebx
mov dword [0x105d114], ebx
mov dword [0x105d10c], ebx
mov dword [0x105d118], ebx
mov dword [0x105d110], eax
lea eax, [ebp - 0x418]
push eax
push 2
lea eax, [ebp - 0x410]
push eax
push dword [0x105d100]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004df4
mov eax, 0xfeff
cmp word [ebp - 0x410], ax
jne 0x1004e03
mov dword [0x101d040], esi
mov dword [0x105d104], ebx
call fcn.01002928
mov edi, 0x1002630
mov dword [0x101d064], ebx
mov esi, 0x1001ed0
movzx eax, word [esi]
push eax
call fcn.01002309
test eax, eax
je 0x1002579
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
cmp word [esi], bx
jne 0x100255e
xor eax, eax
cmp ax, word [esi]
jne 0x1004e3c
call fcn.01002928
xor eax, eax
push 0x2e
mov word [ebp - 0x402], ax
call fcn.01002309
mov esi, dword [sym.imp.SHLWAPI.dll_:p1tcd__cz_sgizm_YcUa__4d6i__G_m_7X9QT9A_]
test eax, eax
je 0x1002640
xor edi, edi
lea eax, [ebp - 0x404]
push eax
call fcn.01002090
test eax, eax
je 0x1004e2d
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1004e2d
lea eax, [ebp - 0x404]
push eax
call esi
mov ecx, dword [0x101d064]
shl ecx, 4
add ecx, eax
inc edi
mov dword [0x101d064], ecx
cmp edi, 2
jb 0x10025a9
cmp ecx, 0x500
jne 0x1004e1e
call fcn.01002928
push dword [ebp - 0x408]
call fcn.010020fa
mov eax, dword [0x105d100]
pop edi
pop esi
cmp eax, ebx
pop ebx
je 0x1002620
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100160d
leave
ret 0xc
lea eax, [ebp - 0x404]
push eax
call fcn.01002090
test eax, eax
je 0x1004e2d
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x1004e2d
lea eax, [ebp - 0x404]
push eax
call esi
mov ecx, dword [0x101d064]
shl ecx, 4
add ecx, eax
push 0x2e
mov dword [0x101d064], ecx
call fcn.01002309
jmp 0x100259f
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1004f41
mov dword [0x101d068], 0x82
jmp 0x100260d
push esi
push ebx
push 0xfffffffffffffffe
push dword [0x105d100]
mov dword [0x101d040], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x1002543
mov dword [0x101d068], 0x86
jmp 0x100260d
mov dword [0x101d068], 0x85
jmp 0x100260d
movzx eax, word [edi]
push eax
call fcn.01002309
test eax, eax
je 0x1004e57
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], bx
jne 0x1004e3c
cmp word [edi], bx
jne 0x1004ebe
push 0x34
call fcn.01002309
mov esi, eax
call fcn.01002928
lea eax, [ebp - 0x40c]
push eax
call fcn.01002090
test eax, eax
je 0x100260d
push dword [ebp - 0x40c]
call fcn.01001fe0
test eax, eax
je 0x100260d
push dword [ebp - 0x408]
cmp esi, ebx
je 0x1004eaa
mov dword [0x101d064], 0x400
jmp 0x1002608
mov dword [0x101d064], 0x310
call fcn.0100d7de
jmp 0x100260d
cmp dword [ebp - 0x414], ebx
jne 0x1004ed5
mov dword [0x101d068], 0x7b
jmp 0x100260d
cmp dword [ebp - 0x408], ebx
je 0x1004f03
push ebx
push 9
push 0x110a
push dword [0x101d090]
call dword [sym.imp.USER32.dll__q_yqzvt__JNggR__S_Oj___y2___T6_BUejm_V_]
push eax
call 0x10086ed
cmp dword [ebp - 0x408], eax
jne 0x1004e2d
cmp dword [0x105e028], ebx
je 0x1004f2b
push 1
push dword [ebp - 0x414]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x105e028]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x105e028], ebx
push dword [ebp - 0x40c]
push dword [ebp - 0x414]
call fcn.0100d4d8
jmp 0x100260d
push eax
push 0x1004f80
lea eax, [ebp - 0x400]
push 0xfa
push eax
call fcn.010062be
add esp, 0x10
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x105d100], ebx
mov dword [0x101d068], 0x81
jmp 0x100260d