Function at 0x1006a9a0
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.100080a0
add esp, 0x10
call fcn.1006ef80
mov edi, 1
cmp dword [0x10194400], edi
jne 0x1006aa5f
mov esi, dword [0x35f42ac]
xor edi, edi
call fcn.10006aa0
test eax, eax
je 0x1006aa5a
add esi, 0x53c
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1006aa4d
mov ecx, 0x100a012c
add eax, 0x64
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006aa40
test dl, dl
je 0x1006aa3c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006aa40
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006aa20
xor eax, eax
jmp 0x1006aa45
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1006abf7
inc edi
add esi, 4
call fcn.10006aa0
cmp edi, eax
jb 0x1006aa10
mov edi, 1
cmp dword [0x101947d8], 0
jne 0x1006ae1b
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 0x1006ac69
lea eax, [ebp - 0x24]
sub eax, 2
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006aab0
sub eax, ecx
mov ecx, dword [0x100a0330]
mov byte [ebp + eax - 0x24], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x100a032c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x100a0334]
mov dword [eax + 4], ecx
mov cx, word [0x100a0338]
mov dword [eax + 8], edx
mov dl, byte [0x100a033a]
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.10037540
add esp, 8
mov ecx, 0x101a2198
xor esi, esi
call fcn.10001040
test eax, eax
jle 0x1006abaa
jmp 0x1006ab70
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 0x1006ab88
add dword [0x100eaf30], edi
mov ecx, 0x101a2198
add esi, edi
call fcn.10001040
cmp esi, eax
jl 0x1006ab70
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 0x1006ae1f
mov eax, dword [0x12b5b20]
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 0x1006ac20
sub eax, edx
mov edi, 1
je 0x1006aa5f
mov eax, dword [0x100eaf30]
mov ecx, dword [0x100a073c]
mov edx, dword [0x100a0740]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov cl, byte [0x100a0744]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
inc dword [0x100eaf30]
jmp 0x1006aa5f
mov eax, dword [0x35ed708]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.10007980
add esp, 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006aca1
test dl, dl
je 0x1006ac9d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006aca1
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006ac81
xor eax, eax
jmp 0x1006aca6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad68
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006acd4
test dl, dl
je 0x1006acd0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006acd4
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006acb4
xor eax, eax
jmp 0x1006acd9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad68
mov eax, dword [0x100eaf30]
mov edx, dword [0x100a011c]
mov ecx, dword [0x100a0120]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x100a0124]
mov dword [eax + 4], ecx
mov cl, byte [0x100a0128]
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 0x1006ae1f
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 0x1006adcd
push 0x100a10d0
mov ecx, 0x10192d2c
call sub.mfc100.dll_Ordinal_12868
mov ecx, dword [0x1011d1bc]
call fcn.1006f0b0
call fcn.10046150
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10086746
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 0x100a10cc
push esi
push 0x100eaf30
call fcn.10007a80
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 0x1006ae1f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10062ed0
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.10086746
mov esp, ebp
pop ebp
ret