Function at 0x1006a0c6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x100a69a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [0x100e04c0], 0
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_sprintf]
push esi
push edi
push eax
push 0x1008b7c4
mov esi, 0x10111d48
push esi
call ebx
push esi
call fcn.10006e54
add esp, 0x10
call fcn.1006ea6d
cmp dword [0x103aafe0], 1
mov esi, 0x100e04c4
jne 0x1006a1c9
and dword [ebp - 0x260], 0
mov edi, dword [0x2f98458]
and dword [ebp - 0x25c], 0
call fcn.10005f8c
test eax, eax
je 0x1006a179
add edi, 0x53c
mov eax, dword [edi]
test eax, eax
je 0x1006a157
add eax, 0x64
push 0x10099714
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1006a16f
inc dword [ebp - 0x25c]
add edi, 4
call fcn.10005f8c
cmp dword [ebp - 0x25c], eax
jb 0x1006a13d
jmp 0x1006a179
mov dword [ebp - 0x260], 1
mov eax, dword [0xe7b850]
mov eax, dword [eax + 0x444]
mov eax, dword [eax + 0x334]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x33c]
add eax, 0x344
cmp dword [ebp - 0x260], 1
jne 0x1006a1c9
push eax
call sub.MSVCR100.dll_strlen
pop ecx
test eax, eax
je 0x1006a1c9
mov eax, dword [0x100e04c0]
imul eax, eax, 0x50
add eax, esi
push 0x1009b01c
push eax
call sub.MSVCR100.dll_strcpy
inc dword [0x100e04c0]
pop ecx
pop ecx
cmp dword [0x103ab3b8], 0
jne 0x1006a3cd
push 0x1e
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x103a97b4
call sub.mfc100.dll_Ordinal_6969
push 0x1e
lea eax, [ebp - 0x44]
push eax
mov ecx, 0x103aac68
call sub.mfc100.dll_Ordinal_6969
lea eax, [ebp - 0x24]
push 0x10092504
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x1006a2d4
lea eax, [ebp - 0x24]
sub eax, 2
push eax
call sub.MSVCR100.dll_strlen
mov byte [ebp + eax - 0x24], 0
mov eax, dword [0x100e04c0]
imul eax, eax, 0x50
add eax, esi
mov dword [esp], 0x1009aa88
push eax
call sub.MSVCR100.dll_strcpy
mov eax, dword [0x100e04c0]
inc eax
mov dword [0x100e04c0], eax
imul eax, eax, 0x50
add eax, esi
push 0x10097900
push eax
call sub.MSVCR100.dll_strcpy
inc dword [0x100e04c0]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
push eax
call fcn.100377cd
mov edi, 0x103bb628
add esp, 0x18
mov ecx, edi
xor ebx, ebx
call fcn.10001036
test eax, eax
jle 0x1006a2a9
mov eax, dword [0x103bb628]
push dword [eax + ebx*4]
mov eax, dword [0x100e04c0]
imul eax, eax, 0x50
add eax, esi
push eax
call sub.MSVCR100.dll_strcpy
inc dword [0x100e04c0]
pop ecx
pop ecx
mov ecx, edi
inc ebx
call fcn.10001036
cmp ebx, eax
jl 0x1006a27d
mov eax, dword [0x100e04c0]
imul eax, eax, 0x50
add eax, esi
push 0x1008f878
push eax
call sub.MSVCR100.dll_strcpy
push dword [ebp + 0xc]
inc dword [0x100e04c0]
call fcn.10064425
add esp, 0xc
jmp 0x1006a3d6
push dword [0x2f91a04]
lea eax, [ebp - 0x64]
push eax
call fcn.10006884
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x1006a348
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x24]
push eax
call sub.MSVCR100.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x1006a348
mov eax, dword [0x100e04c0]
imul eax, eax, 0x50
add eax, esi
push 0x1009a8c0
push eax
call sub.MSVCR100.dll_strcpy
mov eax, dword [0x100e04c0]
inc eax
mov dword [0x100e04c0], eax
imul eax, eax, 0x50
add eax, esi
push 0x1008f878
push eax
call sub.MSVCR100.dll_strcpy
add esp, 0x10
inc dword [0x100e04c0]
jmp 0x1006a3cd
lea eax, [ebp - 0x24]
push eax
push 0x10111b20
lea eax, [ebp - 0x258]
push 0x100924f4
push eax
call ebx
lea eax, [ebp - 0x258]
push 0x1008c7f4
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x1006a38c
mov ecx, dword [0x1011280c]
call fcn.1006eb87
call fcn.10044a55
jmp 0x1006a3d6
mov esi, 0x3e8
push esi
call sub.mfc100.dll_Ordinal_265
push esi
mov edi, eax
push 0
push edi
call sub.MSVCR100.dll_memset
push ebx
push esi
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
push 0x1009bb58
push edi
push 0x100e04c0
call fcn.10006940
push ebx
call dword [sym.imp.MSVCR100.dll_fclose]
push edi
call sub.mfc100.dll_Ordinal_1296
add esp, 0x34
push dword [ebp + 0xc]
call fcn.10064425
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10083e24
leave
ret