Function at 0x100370d7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x100a509c]
xor eax, esp
mov dword [esp + 0x260], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
push 0x1008a5f0
mov esi, 0x10111128
xor ebx, ebx
push esi
mov dword [0x100df8d8], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0xc
push esi
call fcn.100060fb
pop ecx
call fcn.100737d2
cmp dword [0x103c5a70], 1
mov edi, dword [sym.imp.MSVCR100.dll_strcpy]
jne 0x100371d1
mov edx, dword [0x2f99460]
mov dword [esp + 0xc], ebx
call fcn.100061d1
test eax, eax
je 0x1003717e
lea esi, [edx + 0x53c]
mov eax, dword [esi]
test eax, eax
je 0x10037167
add eax, 0x64
push 0x10097450
push eax
call dword [sym.imp.MSVCR100.dll_strcmp]
pop ecx
pop ecx
test eax, eax
je 0x10037176
inc ebx
add esi, 4
call fcn.100061d1
cmp ebx, eax
jb 0x1003714c
jmp 0x1003717e
mov dword [esp + 0xc], 1
mov eax, dword [0xe7c850]
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 0x100371d1
push eax
call dword [sym.imp.MSVCR100.dll_strlen]
pop ecx
test eax, eax
je 0x100371d1
mov eax, dword [0x100df8d8]
imul eax, eax, 0x50
mov esi, 0x100df8dc
add eax, esi
push 0x10097458
push eax
call edi
inc dword [0x100df8d8]
pop ecx
pop ecx
jmp 0x100371d6
mov esi, 0x100df8dc
cmp dword [ebp + 0xc], 4
mov ebx, 0x3e8
jne 0x100371f1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1035edc0]
cmp eax, ebx
jbe 0x100371fe
cmp dword [0x103c5e48], 0
jne 0x100373f9
push 0x1e
lea eax, [esp + 0x14]
push eax
mov ecx, 0x103c4244
call dword [sym.imp.mfc100.dll_Ordinal_6969]
push 0x1e
lea eax, [esp + 0x34]
push eax
mov ecx, 0x103c56f8
call dword [sym.imp.mfc100.dll_Ordinal_6969]
lea eax, [esp + 0x10]
push 0x10091580
push eax
call dword [sym.imp.MSVCR100.dll_strstr]
pop ecx
pop ecx
test eax, eax
je 0x100372ee
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 [0x100df8d8]
imul eax, eax, 0x50
add eax, esi
mov dword [esp], 0x10097464
push eax
call edi
mov eax, dword [0x100df8d8]
inc eax
mov dword [0x100df8d8], eax
imul eax, eax, 0x50
add eax, esi
push 0x10096990
push eax
call edi
inc dword [0x100df8d8]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCR100.dll_atoi]
add esp, 0x14
mov ebx, eax
call fcn.1003701a
xor ebx, ebx
cmp dword [0x103d60c0], ebx
jle 0x100372c6
mov eax, dword [0x103d60b8]
push dword [eax + ebx*4]
mov eax, dword [0x100df8d8]
imul eax, eax, 0x50
add eax, esi
push eax
call edi
inc dword [0x100df8d8]
inc ebx
pop ecx
pop ecx
cmp ebx, dword [0x103d60c0]
jl 0x100372a0
mov eax, dword [0x100df8d8]
imul eax, eax, 0x50
add eax, esi
push 0x1008e8c8
push eax
call edi
push dword [ebp + 0xc]
inc dword [0x100df8d8]
call fcn.10060e45
add esp, 0xc
jmp 0x10037402
push dword [0x2f92a08]
lea esi, [esp + 0x54]
call fcn.10006e68
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 0x10037365
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x14]
push eax
call esi
pop ecx
pop ecx
test eax, eax
jne 0x10037365
mov eax, dword [0x100df8d8]
imul eax, eax, 0x50
mov esi, 0x100df8dc
add eax, esi
push 0x10097474
push eax
call edi
mov eax, dword [0x100df8d8]
inc eax
mov dword [0x100df8d8], eax
imul eax, eax, 0x50
add eax, esi
push 0x1008e8c8
push eax
call edi
add esp, 0x10
inc dword [0x100df8d8]
jmp 0x100373f9
lea eax, [esp + 0x10]
push eax
push 0x10110f10
lea eax, [esp + 0x78]
push 0x10091588
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
lea eax, [esp + 0x80]
push 0x1008b734
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 0x18
mov dword [esp + 0xc], eax
test eax, eax
jne 0x100373af
mov ecx, dword [0x1012ecb8]
call fcn.100739ac
call fcn.10067fd4
jmp 0x10037402
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 0x10097484
push edi
mov esi, 0x100df8d8
call fcn.10006ef0
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.10060e45
pop ecx
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10082395
mov esp, ebp
pop ebp
ret