Function at 0x402ba7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x5beeb0
push str.CALMIFInfo::ReadLog
push 5
mov esi, ecx
xor ebx, ebx
call fcn.00423f75
lea edi, [esi + 0x130]
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x402bd6
mov eax, dword [edi]
jmp 0x402bd8
mov eax, edi
push eax
call fcn.00435877
pop ecx
test eax, eax
je 0x4031b9
cmp dword [edi + 0x14], 8
jb 0x402bef
mov edi, dword [edi]
push 0x40
push 0x5bf118
push edi
call fcn.0058815d
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x403196
push ebx
push 0x98
push 1
push esi
call fcn.0058879b
mov edi, eax
add esp, 0x10
test edi, edi
je 0x403196
push ebx
call fcn.005885b2
pop ecx
test eax, eax
jne 0x403196
mov eax, 0x98
cmp edi, eax
jae 0x402c4d
sub eax, edi
push eax
lea eax, [edi + esi]
push 0
push eax
call fcn.00587a70
add esp, 0xc
mov edi, 0x98
push edi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x98]
push eax
mov ecx, esi
mov dword [ebp - 4], esi
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x9c]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xa0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xa4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xa8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xac]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xb0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xb4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xb8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xbc]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xc0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xc4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xc8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xcc]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xd0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xd4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xd8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xdc]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xe0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xe4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xe8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xec]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xf0]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xf4]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xf8]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0xfc]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x100]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x104]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x108]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x10c]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x110]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x114]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x118]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x11c]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x120]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x124]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x128]
push eax
call fcn.004013bc
test eax, eax
je 0x403196
mov eax, esi
sub eax, dword [ebp - 4]
mov ecx, esi
add eax, edi
push eax
lea eax, [ebp - 4]
push eax
push 4
lea eax, [esi + 0x12c]
push eax
call fcn.004013bc
test eax, eax
jne 0x4031b9
push 0x5beee8
push str.CALMIFInfo::ReadLog
push 5
call fcn.00423f75
add esp, 0xc
test ebx, ebx
je 0x4031b5
push ebx
call fcn.0058853b
pop ecx
xor eax, eax
jmp 0x4031db
push 0x5beecc
push str.CALMIFInfo::ReadLog
push 5
call fcn.00423f75
add esp, 0xc
test ebx, ebx
je 0x4031d8
push ebx
call fcn.0058853b
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret