Function at 0x1006967
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x8234
call fcn.0100e330
mov eax, dword [0x101348c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8220], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8230], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x8228], eax
mov eax, dword [ebp + 0x18]
push esi
mov dword [ebp - 0x8224], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [ebp - 0x822c], eax
mov eax, dword [ebp + 0x24]
xor esi, esi
push 0x7f02
push esi
mov dword [ebp - 0x8234], eax
mov dword [ebp - 0x8214], esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
mov ecx, 0x37b
mov edi, 0x1033940
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x8208]
push eax
mov edi, 0x4000
push edi
lea eax, [ebp - 0x8204]
push eax
push ebx
mov word [ebp - 0x204], si
mov dword [ebp - 0x820c], esi
mov dword [0x103473c], esi
mov dword [ebp - 0x821c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006c20
lea eax, [ebp - 0x8204]
neg eax
mov dword [ebp - 0x8218], eax
shr dword [ebp - 0x8208], 1
cmp dword [ebp - 0x8208], esi
mov dword [ebp - 0x8210], esi
jle 0x1006bef
mov ecx, dword [ebp - 0x8210]
add ecx, ecx
mov ax, word [ebp + ecx - 0x8204]
cmp ax, 0xd
je 0x1006bd7
cmp ax, 0xfeff
je 0x1006bd7
cmp ax, 0xa
jne 0x1006ba6
mov eax, dword [ebp - 0x820c]
inc dword [0x103473c]
mov word [ebp + eax*2 - 0x204], si
push 0x100141c
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x820c], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
lea eax, [ebp - 0x204]
jne 0x1006ad1
mov dword [ebp - 0x8214], 1
push 0x10013a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x1006bd7
push 0x100140c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1006b95
push 0x10013f0
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1006b95
cmp dword [ebp - 0x8214], esi
lea eax, [ebp - 0x204]
je 0x1006ac0
push eax
call fcn.0100b677
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x1006bd7
push dword [ebp - 0x8234]
lea eax, [ebp - 0x204]
push dword [ebp - 0x822c]
push dword [ebp - 0x8224]
push dword [ebp - 0x8228]
push eax
push dword [ebp - 0x8230]
push dword [ebp - 0x8220]
call fcn.010057e2
cmp eax, 1
jne 0x1006b77
mov eax, dword [0x1033928]
mov ecx, dword [ebp - 0x821c]
mov edx, dword [ebp - 0x8224]
shl eax, 5
mov dword [eax + edx - 4], ecx
jmp 0x1006bd7
cmp eax, esi
jne 0x1006bd7
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
jmp 0x1006c55
mov dword [ebp - 0x8214], esi
lea eax, [ebp - 0x204]
jmp 0x1006ac0
cmp dword [ebp - 0x820c], esi
jne 0x1006bc3
mov edx, dword [ebp - 0x8218]
add edx, ecx
lea ecx, [ebp + edx - 0x8204]
mov dword [ebp - 0x821c], ecx
mov ecx, dword [ebp - 0x820c]
inc dword [ebp - 0x820c]
mov word [ebp + ecx*2 - 0x204], ax
inc dword [ebp - 0x8210]
mov eax, dword [ebp - 0x8210]
cmp eax, dword [ebp - 0x8208]
jl 0x1006a52
mov eax, dword [ebp - 0x8208]
add eax, eax
cmp eax, edi
jb 0x1006c20
add dword [ebp - 0x8218], edi
push esi
lea eax, [ebp - 0x8208]
push eax
push edi
lea eax, [ebp - 0x8204]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1006a3a
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
cmp dword [0x1033928], esi
jne 0x1006c52
push 1
push dword [ebp - 0x8220]
push 0x51f
call fcn.0100b820
jmp 0x1006b8e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100dd00
leave
ret 0x20