Function at 0x10069f30
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.10008090
add esp, 0x10
call fcn.1006e640
mov edi, 1
cmp dword [0x10194400], edi
jne 0x10069fef
mov esi, dword [0x35f30a4]
xor edi, edi
call fcn.10006a90
test eax, eax
je 0x10069fea
add esi, 0x53c
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x10069fdd
mov ecx, 0x1009ff78
add eax, 0x64
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10069fd0
test dl, dl
je 0x10069fcc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10069fd0
add eax, 2
add ecx, 2
test dl, dl
jne 0x10069fb0
xor eax, eax
jmp 0x10069fd5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1006a187
inc edi
add esi, 4
call fcn.10006a90
cmp edi, eax
jb 0x10069fa0
mov edi, 1
cmp dword [0x101947d8], 0
jne 0x1006a3ab
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 0x10099ec0
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x1006a1f9
lea eax, [ebp - 0x24]
sub eax, 2
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006a040
sub eax, ecx
mov ecx, dword [0x100a0318]
mov byte [ebp + eax - 0x24], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x100a0314]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x100a031c]
mov dword [eax + 4], ecx
mov cx, word [0x100a0320]
mov dword [eax + 8], edx
mov dl, byte [0x100a0322]
mov word [eax + 0xc], cx
mov ecx, dword [0x1009d9e0]
mov byte [eax + 0xe], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009d9e4]
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 [0x1009d9ec]
mov dword [eax + 8], ecx
mov cl, byte [0x1009d9f0]
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.10036f50
add esp, 8
mov ecx, 0x101a2194
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1006a13a
jmp 0x1006a100
mov eax, dword [0x101a2194]
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 0x1006a118
add dword [0x100eaf30], edi
mov ecx, 0x101a2194
add esi, edi
call fcn.10001240
cmp esi, eax
jl 0x1006a100
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 0x1006a3af
mov eax, dword [0x12b4a90]
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 0x1006a1b0
sub eax, edx
mov edi, 1
je 0x10069fef
mov eax, dword [0x100eaf30]
mov ecx, dword [0x100a0724]
mov edx, dword [0x100a0728]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov cl, byte [0x100a072c]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
inc dword [0x100eaf30]
jmp 0x10069fef
mov eax, dword [0x35ec500]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.10007970
add esp, 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006a231
test dl, dl
je 0x1006a22d
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006a231
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006a211
xor eax, eax
jmp 0x1006a236
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006a2f8
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006a264
test dl, dl
je 0x1006a260
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006a264
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006a244
xor eax, eax
jmp 0x1006a269
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006a2f8
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009ff68]
mov ecx, dword [0x1009ff6c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x1009ff70]
mov dword [eax + 4], ecx
mov cl, byte [0x1009ff74]
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 0x1006a3af
lea eax, [ebp - 0x24]
push eax
push 0x1011c4d0
lea ecx, [ebp - 0x258]
push 0x10099eb0
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 0x1006a35d
push 0x100a1074
mov ecx, 0x10192d2c
call sub.mfc100.dll_Ordinal_12868
mov ecx, dword [0x1011d1bc]
call fcn.1006e770
call fcn.10045aa0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10085dc6
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 0x100a1070
push esi
push 0x100eaf30
call fcn.10007a70
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 0x1006a3af
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10062600
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.10085dc6
mov esp, ebp
pop ebp
ret