Function at 0x1006a960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x100ae8c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
push 0x1009648c
push 0x1011c6e8
mov dword [0x100eaf30], 0
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008080
add esp, 0x10
call fcn.1006ef40
mov edi, 1
cmp dword [0x10194400], edi
jne 0x1006aa1f
mov esi, dword [0x2f98458]
xor edi, edi
call fcn.10006a60
test eax, eax
je 0x1006aa1a
add esi, 0x53c
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1006aa0d
mov ecx, 0x1009ffb8
add eax, 0x64
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006aa00
test dl, dl
je 0x1006a9fc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006aa00
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006a9e0
xor eax, eax
jmp 0x1006aa05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1006abb7
inc edi
add esi, 4
call fcn.10006a60
cmp edi, eax
jb 0x1006a9d0
mov edi, 1
cmp dword [0x101947d8], 0
jne 0x1006addb
push 0x1e
lea edx, [ebp - 0x24]
push edx
mov ecx, 0x10192d2c
call sub.mfc100.dll_Ordinal_6969
push 0x1e
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x10194088
call sub.mfc100.dll_Ordinal_6969
lea ecx, [ebp - 0x24]
push 0x10099ed0
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x1006ac29
lea eax, [ebp - 0x24]
sub eax, 2
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006aa70
sub eax, ecx
mov ecx, dword [0x100a0358]
mov byte [ebp + eax - 0x24], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x100a0354]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x100a035c]
mov dword [eax + 4], ecx
mov cx, word [0x100a0360]
mov dword [eax + 8], edx
mov dl, byte [0x100a0362]
mov word [eax + 0xc], cx
mov ecx, dword [0x1009d9f8]
mov byte [eax + 0xe], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009d9fc]
add eax, edi
mov dword [0x100eaf30], eax
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov ecx, dword [str._9_0_79_]
mov dword [eax + 4], edx
mov edx, dword [0x1009da04]
mov dword [eax + 8], ecx
mov cl, byte [0x1009da08]
mov dword [eax + 0xc], edx
lea edx, [ebp - 0x20]
mov byte [eax + 0x10], cl
add dword [0x100eaf30], edi
push edx
call dword [sym.imp.MSVCR100.dll_atoi]
push eax
call fcn.10037520
add esp, 8
mov ecx, 0x101a2198
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1006ab6a
jmp 0x1006ab30
mov eax, dword [0x101a2198]
mov edx, dword [eax + esi*4]
mov eax, dword [0x100eaf30]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov cl, byte [edx]
mov byte [eax], cl
add edx, edi
add eax, edi
test cl, cl
jne 0x1006ab48
add dword [0x100eaf30], edi
mov ecx, 0x101a2198
add esi, edi
call fcn.10001240
cmp esi, eax
jl 0x1006ab30
mov eax, dword [0x100eaf30]
mov ecx, dword [0x10097618]
mov edx, dword [0x1009761c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov ecx, dword [0x10097620]
mov dword [eax + 4], edx
mov dx, word [0x10097624]
mov dword [eax + 8], ecx
mov cl, byte [0x10097626]
mov word [eax + 0xc], dx
mov edx, dword [ebp + 0xc]
mov byte [eax + 0xe], cl
add dword [0x100eaf30], edi
push edx
jmp 0x1006addf
mov eax, dword [0xe7b850]
mov ecx, dword [eax + 0x444]
mov edx, dword [ecx + 0x334]
mov eax, dword [edx + 4]
mov eax, dword [eax + 0x33c]
add eax, 0x344
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006abe0
sub eax, edx
mov edi, 1
je 0x1006aa1f
mov eax, dword [0x100eaf30]
mov ecx, dword [0x100a0764]
mov edx, dword [0x100a0768]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov cl, byte [0x100a076c]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
inc dword [0x100eaf30]
jmp 0x1006aa1f
mov eax, dword [0x2f91a04]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.10007940
add esp, 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006ac61
test dl, dl
je 0x1006ac5d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006ac61
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006ac41
xor eax, eax
jmp 0x1006ac66
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad28
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006ac94
test dl, dl
je 0x1006ac90
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006ac94
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006ac74
xor eax, eax
jmp 0x1006ac99
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad28
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009ffa8]
mov ecx, dword [0x1009ffac]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x1009ffb0]
mov dword [eax + 4], ecx
mov cl, byte [0x1009ffb4]
mov dword [eax + 8], edx
mov edx, dword [0x10097618]
mov byte [eax + 0xc], cl
mov eax, dword [0x100eaf30]
mov ecx, dword [0x1009761c]
add eax, edi
mov dword [0x100eaf30], eax
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x10097620]
mov dword [eax + 4], ecx
mov cx, word [0x10097624]
mov dword [eax + 8], edx
mov dl, byte [0x10097626]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
mov eax, dword [ebp + 0xc]
add dword [0x100eaf30], edi
push eax
jmp 0x1006addf
lea eax, [ebp - 0x24]
push eax
push 0x1011c4d0
lea ecx, [ebp - 0x258]
push 0x10099ec0
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [ebp - 0x258]
push 0x100946b8
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1006ad8d
push 0x100a10f8
mov ecx, 0x10192d2c
call sub.mfc100.dll_Ordinal_12868
mov ecx, dword [0x1011d1bc]
call fcn.1006f070
call fcn.10046130
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086738
mov esp, ebp
pop ebp
ret
push 0x3e8
call sub.mfc100.dll_Ordinal_265
push 0x3e8
mov esi, eax
push 0
push esi
call sub.MSVCR100.dll_memset
push edi
push 0x3e8
push 1
push esi
call dword [sym.imp.MSVCR100.dll_fread]
push 0x100a10f4
push esi
push 0x100eaf30
call fcn.10007a40
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
push esi
call sub.mfc100.dll_Ordinal_1296
mov eax, dword [ebp + 0xc]
add esp, 0x34
push eax
jmp 0x1006addf
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10062e90
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.10086738
mov esp, ebp
pop ebp
ret