Function at 0x100c057
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 [0x10191f4]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x408], 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 - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
mov edi, 0x104
push edi
push esi
push edx
mov ebx, 0x80
push esi
mov dword [ebp - 0x414], edx
mov dword [0x1019978], ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, esi
je 0x100c3aa
cmp eax, edi
ja 0x100c3aa
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 [0x1059980], eax
je 0x100c3aa
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x64
pop ecx
xor edx, edx
div ecx
push esi
mov dword [0x1059994], esi
mov dword [0x105998c], esi
mov dword [0x1059998], esi
mov dword [0x1059990], eax
lea eax, [ebp - 0x41c]
push eax
push 2
lea eax, [ebp - 0x410]
push eax
push dword [0x1059980]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100c159
mov dword [0x1019978], 0x82
jmp 0x100c3e7
cmp word [ebp - 0x410], 0xfeff
jne 0x100c16c
mov dword [0x10190c4], edi
jmp 0x100c182
push edi
push esi
push 0xfffffffffffffffe
push dword [0x1059980]
mov dword [0x10190c4], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x1059984], esi
call fcn.0100b11f
mov ebx, 0x1001a28
mov dword [0x1019974], esi
mov edi, 0x1001a68
xor eax, eax
mov ax, word [edi]
push eax
call fcn.0100ac54
test eax, eax
je 0x100c1ba
push edi
call dword [sym.imp.USER32.dll_CharNextW]
mov edi, eax
cmp word [edi], si
jne 0x100c19d
cmp word [edi], si
jne 0x100c2a1
call fcn.0100b11f
push 0x2e
mov word [ebp - 0x402], si
call fcn.0100ac54
mov edi, dword [sym.imp.COMCTL32.dll_Ordinal_365]
jmp 0x100c227
lea eax, [ebp - 0x404]
push eax
call fcn.0100ab53
test eax, eax
je 0x100c363
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x100c363
lea eax, [ebp - 0x404]
push eax
call edi
mov ecx, dword [0x1019974]
shl ecx, 4
add ecx, eax
push 0x2e
mov dword [0x1019974], ecx
call fcn.0100ac54
test eax, eax
je 0x100c1de
xor ebx, ebx
lea eax, [ebp - 0x404]
push eax
call fcn.0100ab53
test eax, eax
je 0x100c363
push dword [ebp - 0x404]
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x100c363
lea eax, [ebp - 0x404]
push eax
call edi
mov ecx, dword [0x1019974]
shl ecx, 4
add ecx, eax
inc ebx
cmp ebx, 2
mov dword [0x1019974], ecx
jb 0x100c22d
cmp ecx, 0x500
je 0x100c28c
mov dword [0x1019978], 0x86
jmp 0x100c3e7
call fcn.0100b11f
push dword [ebp - 0x408]
call fcn.0100bfa9
jmp 0x100c3e7
xor eax, eax
mov ax, word [ebx]
push eax
call fcn.0100ac54
test eax, eax
je 0x100c2be
push ebx
call dword [sym.imp.USER32.dll_CharNextW]
mov ebx, eax
cmp word [ebx], si
jne 0x100c2a1
cmp word [ebx], si
jne 0x100c322
push 0x34
call fcn.0100ac54
mov edi, eax
call fcn.0100b11f
lea eax, [ebp - 0x40c]
push eax
call fcn.0100ab53
test eax, eax
je 0x100c3e7
push dword [ebp - 0x40c]
call fcn.0100acac
test eax, eax
je 0x100c3e7
cmp edi, esi
push dword [ebp - 0x408]
je 0x100c30e
mov dword [0x1019974], 0x400
jmp 0x100c297
mov dword [0x1019974], 0x310
call fcn.0100b1ee
jmp 0x100c3e7
cmp dword [ebp - 0x40c], esi
jne 0x100c339
mov dword [0x1019978], 0x7b
jmp 0x100c3e7
cmp dword [ebp - 0x408], esi
je 0x100c36f
push esi
push 9
push 0x110a
push dword [0x1019060]
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
call fcn.010050e4
cmp dword [ebp - 0x408], eax
je 0x100c36f
mov dword [0x1019978], 0x85
jmp 0x100c3e7
cmp dword [0x1059dc8], esi
je 0x100c397
push 1
push dword [ebp - 0x40c]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [0x1059dc8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [0x1059dc8], esi
push dword [ebp - 0x414]
push dword [ebp - 0x40c]
call fcn.0100aa6b
jmp 0x100c3e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001c08
lea eax, [ebp - 0x400]
push 0xfa
push eax
call fcn.01003135
add esp, 0x10
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [0x1059980], esi
mov dword [0x1019978], 0x81
mov eax, dword [0x1059980]
pop edi
cmp eax, esi
pop esi
pop ebx
je 0x100c3fa
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
call fcn.01016b82
leave
ret 0xc