Function at 0x40cfd0
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x43d25c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.events.dat
lea eax, [ebp - 0x204]
push 2
push eax
mov dword [0x433a00], 0
call fcn.0041e9d0
push 0x40
lea ecx, [ebp - 0x204]
push 0x4351c0
push ecx
call dword [sym.imp.MSVCR100.dll__fsopen]
mov esi, eax
add esp, 0x18
mov dword [ebp - 0x288], esi
test esi, esi
je 0x40d2be
push esi
push 1
lea edx, [ebp - 0x284]
push 0x7d
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x40d2b4
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_strncmp]
push edi
mov edi, edi
lea eax, [ebp - 0x273]
push 3
push eax
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x40d294
push 3
lea ecx, [ebp - 0x270]
push 0x4351c4
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea edx, [ebp - 0x270]
push 0x4351c8
push edx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea eax, [ebp - 0x270]
push 0x4351cc
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea ecx, [ebp - 0x270]
push 0x4351d0
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea edx, [ebp - 0x270]
push 0x4351d4
push edx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea eax, [ebp - 0x270]
push 0x4351d8
push eax
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea ecx, [ebp - 0x270]
push 0x4351dc
push ecx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea edx, [ebp - 0x270]
push 0x4351e0
push edx
call ebx
add esp, 0xc
test eax, eax
je 0x40d148
push 3
lea eax, [ebp - 0x270]
push 0x4351e4
push eax
call ebx
add esp, 0xc
test eax, eax
jne 0x40d294
lea ecx, [ebp - 0x263]
push 6
push ecx
call fcn.0041cbd0
add esp, 8
test eax, eax
jne 0x40d294
mov edi, dword [0x433a00]
mov eax, dword [0x452620]
lea edx, [edi*4 + 4]
push edx
push eax
call dword [sym.imp.MSVCR100.dll_realloc]
mov esi, eax
add esp, 8
mov dword [0x452620], esi
test esi, esi
je 0x40d2d2
push 0x28
call dword [sym.imp.MSVCR100.dll_malloc]
push 8
lea ecx, [ebp - 0x284]
push ecx
mov dword [esi + edi*4], eax
mov esi, dword [sym.imp.MSVCR100.dll_strncpy]
push eax
call esi
mov eax, dword [0x452620]
mov ecx, dword [0x433a00]
push 3
lea edx, [ebp - 0x273]
push edx
mov edx, dword [eax + ecx*4]
add edx, 8
push edx
call esi
mov eax, dword [0x452620]
mov ecx, dword [0x433a00]
mov edx, dword [eax + ecx*4]
add edx, 0xc
push edx
call fcn.0041d130
mov eax, dword [0x452620]
mov ecx, dword [0x433a00]
mov edx, dword [eax + ecx*4]
add edx, 0xc
push edx
lea eax, [ebp - 0x263]
push eax
call fcn.0041d180
mov ecx, dword [0x452620]
mov edx, dword [0x433a00]
mov eax, dword [ecx + edx*4]
add eax, 0xc
push eax
lea ecx, [ebp - 0x25d]
push ecx
call fcn.0041d640
mov edx, dword [0x433a00]
mov eax, dword [0x452620]
mov ecx, dword [eax + edx*4]
add ecx, 0x1a
push ecx
call fcn.0041d130
lea edx, [ebp - 0x25b]
push 6
push edx
call fcn.0041cbd0
add esp, 0x3c
test eax, eax
jne 0x40d288
mov eax, dword [0x452620]
mov ecx, dword [0x433a00]
mov edx, dword [eax + ecx*4]
add edx, 0x1a
push edx
lea eax, [ebp - 0x25b]
push eax
call fcn.0041d180
mov ecx, dword [0x433a00]
mov edx, dword [0x452620]
mov eax, dword [edx + ecx*4]
add eax, 0x1a
push eax
lea ecx, [ebp - 0x255]
push ecx
call fcn.0041d640
add esp, 0x10
inc dword [0x433a00]
mov esi, dword [ebp - 0x288]
push esi
push 1
lea edx, [ebp - 0x284]
push 0x7d
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x40d050
pop edi
pop ebx
push esi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, dword [0x433a00]
xor ecx, ebp
pop esi
call fcn.004248f0
mov esp, ebp
pop ebp
ret
push str.Cannot_get_enough_memory_to_make_array_n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 1
call dword [sym.imp.MSVCR100.dll_exit]
int3