Function at 0x1006a9d0
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 0x100964b4
push 0x1011c6e8
mov dword [0x100eaf30], 0
call dword [sym.imp.MSVCR100.dll_sprintf]
push 0x1011c6e8
call fcn.10008130
add esp, 0x10
call fcn.1006efb0
mov edi, 1
cmp dword [0x10194400], edi
jne 0x1006aa8f
mov esi, dword [0x2f99460]
xor edi, edi
call fcn.10006a60
test eax, eax
je 0x1006aa8a
add esi, 0x53c
lea esp, [esp]
mov eax, dword [esi]
test eax, eax
je 0x1006aa7d
mov ecx, 0x1009ffe0
add eax, 0x64
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006aa70
test dl, dl
je 0x1006aa6c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006aa70
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006aa50
xor eax, eax
jmp 0x1006aa75
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1006ac27
inc edi
add esi, 4
call fcn.10006a60
cmp edi, eax
jb 0x1006aa40
mov edi, 1
cmp dword [0x101947d8], 0
jne 0x1006ae4b
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 0x10099ef8
push ecx
call dword [sym.imp.MSVCR100.dll_strstr]
add esp, 8
test eax, eax
je 0x1006ac99
lea eax, [ebp - 0x24]
sub eax, 2
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1006aae0
sub eax, ecx
mov ecx, dword [0x100a0380]
mov byte [ebp + eax - 0x24], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x100a037c]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x100a0384]
mov dword [eax + 4], ecx
mov cx, word [0x100a0388]
mov dword [eax + 8], edx
mov dl, byte [0x100a038a]
mov word [eax + 0xc], cx
mov ecx, dword [0x1009da20]
mov byte [eax + 0xe], dl
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009da24]
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 [0x1009da2c]
mov dword [eax + 8], ecx
mov cl, byte [0x1009da30]
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.100375c0
add esp, 8
mov ecx, 0x101a2198
xor esi, esi
call fcn.10001240
test eax, eax
jle 0x1006abda
jmp 0x1006aba0
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 0x1006abb8
add dword [0x100eaf30], edi
mov ecx, 0x101a2198
add esi, edi
call fcn.10001240
cmp esi, eax
jl 0x1006aba0
mov eax, dword [0x100eaf30]
mov ecx, dword [0x10097640]
mov edx, dword [0x10097644]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov ecx, dword [0x10097648]
mov dword [eax + 4], edx
mov dx, word [0x1009764c]
mov dword [eax + 8], ecx
mov cl, byte [0x1009764e]
mov word [eax + 0xc], dx
mov edx, dword [ebp + 0xc]
mov byte [eax + 0xe], cl
add dword [0x100eaf30], edi
push edx
jmp 0x1006ae4f
mov eax, dword [0xe7c850]
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 0x1006ac50
sub eax, edx
mov edi, 1
je 0x1006aa8f
mov eax, dword [0x100eaf30]
mov ecx, dword [0x100a078c]
mov edx, dword [0x100a0790]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], ecx
mov cl, byte [0x100a0794]
mov dword [eax + 4], edx
mov byte [eax + 8], cl
inc dword [0x100eaf30]
jmp 0x1006aa8f
mov eax, dword [0x2f92a08]
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.10007a10
add esp, 8
lea ecx, [ebp - 0x44]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006acd1
test dl, dl
je 0x1006accd
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006acd1
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006acb1
xor eax, eax
jmp 0x1006acd6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad98
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x24]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1006ad04
test dl, dl
je 0x1006ad00
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1006ad04
add eax, 2
add ecx, 2
test dl, dl
jne 0x1006ace4
xor eax, eax
jmp 0x1006ad09
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1006ad98
mov eax, dword [0x100eaf30]
mov edx, dword [0x1009ffd0]
mov ecx, dword [0x1009ffd4]
lea eax, [eax + eax*4]
shl eax, 4
add eax, 0x100eaf34
mov dword [eax], edx
mov edx, dword [0x1009ffd8]
mov dword [eax + 4], ecx
mov cl, byte [0x1009ffdc]
mov dword [eax + 8], edx
mov edx, dword [0x10097640]
mov byte [eax + 0xc], cl
mov eax, dword [0x100eaf30]
mov ecx, dword [0x10097644]
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 [0x10097648]
mov dword [eax + 4], ecx
mov cx, word [0x1009764c]
mov dword [eax + 8], edx
mov dl, byte [0x1009764e]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
mov eax, dword [ebp + 0xc]
add dword [0x100eaf30], edi
push eax
jmp 0x1006ae4f
lea eax, [ebp - 0x24]
push eax
push 0x1011c4d0
lea ecx, [ebp - 0x258]
push 0x10099ee8
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [ebp - 0x258]
push 0x100946e0
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1006adfd
push 0x100a1120
mov ecx, 0x10192d2c
call sub.mfc100.dll_Ordinal_12868
mov ecx, dword [0x1011d1bc]
call fcn.1006f0e0
call fcn.100461d0
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100867e6
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 0x100a111c
push esi
push 0x100eaf30
call fcn.10007b10
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 0x1006ae4f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10062f00
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
pop esi
call fcn.100867e6
mov esp, ebp
pop ebp
ret