Function at 0x1003788e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x100a609c]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x1008b5f8
mov esi, 0x10112128
xor ebx, ebx
push esi
mov dword [0x100e08d8], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push esi
call fcn.100060db
pop ecx
call fcn.100744bd
cmp dword [0x103c6af8], 1
mov edi, dword [sym.imp.MSVCR100.dll_strcpy]
jne 0x10037988
mov edx, dword [0x3059750]
mov dword [esp + 0xc], ebx
call fcn.100061b1
test eax, eax
je 0x10037935
lea esi, [edx + 0x53c]
mov eax, dword [esi]
test eax, eax
je 0x1003791e
add eax, 0x64
push 0x1009877c
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x1003792d
inc ebx
add esi, 4
call fcn.100061b1
cmp ebx, eax
jb 0x10037903
jmp 0x10037935
mov dword [esp + 0xc], 1
mov eax, dword [0xf39a68]
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 [esp + 0xc], 1
jne 0x10037988
push eax
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
je 0x10037988
mov eax, dword [0x100e08d8]
imul eax, eax, 0x50
mov esi, 0x100e08dc
add eax, esi
push 0x10098784
push eax
call edi
inc dword [0x100e08d8]
pop ecx
pop ecx
jmp 0x1003798d
mov esi, 0x100e08dc
cmp dword [ebp + 0xc], 4
mov ebx, 0x3e8
jne 0x100379a8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1035fdc0]
cmp eax, ebx
jbe 0x100379b5
cmp dword [0x103c6ed0], 0
jne 0x10037bb0
push 0x1e
lea eax, [esp + 0x14]
push eax
mov ecx, 0x103c52cc
call dword [sym.imp.mfc100.dll_Ordinal_6969]
push 0x1e
lea eax, [esp + 0x34]
push eax
mov ecx, 0x103c6780
call dword [sym.imp.mfc100.dll_Ordinal_6969]
lea eax, [esp + 0x10]
push 0x10092590
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x10037aa5
lea eax, [esp + 0x10]
sub eax, 2
push eax
call dword [sym.imp.MSVCR100.dll_strlen]
mov byte [esp + eax + 0x14], 0
mov eax, dword [0x100e08d8]
imul eax, eax, 0x50
add eax, esi
mov dword [esp], 0x10098790
push eax
call edi
mov eax, dword [0x100e08d8]
inc eax
mov dword [0x100e08d8], eax
imul eax, eax, 0x50
add eax, esi
push 0x10097ca0
push eax
call edi
inc dword [0x100e08d8]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 0x14
mov ebx, eax
call fcn.100377d1
xor ebx, ebx
cmp dword [0x103d733c], ebx
jle 0x10037a7d
mov eax, dword [0x103d7334]
push dword [eax + ebx*4]
mov eax, dword [0x100e08d8]
imul eax, eax, 0x50
add eax, esi
push eax
call edi
inc dword [0x100e08d8]
inc ebx
pop ecx
pop ecx
cmp ebx, dword [0x103d733c]
jl 0x10037a57
mov eax, dword [0x100e08d8]
imul eax, eax, 0x50
add eax, esi
push 0x1008f8d8
push eax
call edi
push dword [ebp + 0xc]
inc dword [0x100e08d8]
call fcn.10061ae2
add esp, 0xc
jmp 0x10037bb9
push dword [0x3052d08]
lea esi, [esp + 0x54]
call fcn.10006e6d
mov esi, dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x14]
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10037b1c
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x14]
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10037b1c
mov eax, dword [0x100e08d8]
imul eax, eax, 0x50
mov esi, 0x100e08dc
add eax, esi
push 0x100987a0
push eax
call edi
mov eax, dword [0x100e08d8]
inc eax
mov dword [0x100e08d8], eax
imul eax, eax, 0x50
add eax, esi
push 0x1008f8d8
push eax
call edi
add esp, 0x10
inc dword [0x100e08d8]
jmp 0x10037bb0
lea eax, [esp + 0x10]
push eax
push 0x10111f10
lea eax, [esp + 0x78]
push 0x10092598
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [esp + 0x80]
push 0x1008c724
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
jne 0x10037b66
mov ecx, dword [0x1012fca4]
call fcn.10074697
call fcn.10068c61
jmp 0x10037bb9
push ebx
call dword [sym.imp.mfc100.dll_Ordinal_265]
pop ecx
push ebx
mov edi, eax
push 0
push edi
call dword [sym.imp.MSVCR100.dll_memset]
add esp, 0xc
push dword [esp + 0xc]
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
push 0x100987b0
push edi
mov esi, 0x100e08d8
call fcn.10006ef5
push dword [esp + 0x24]
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x1c
push edi
call dword [sym.imp.mfc100.dll_Ordinal_1296]
pop ecx
push dword [ebp + 0xc]
call fcn.10061ae2
pop ecx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1008344f
mov esp, ebp
pop ebp
ret