Function at 0x10026d60
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10136466
mov eax, dword fs:[0]
push eax
mov eax, 0x27f8
call fcn.10126240
mov eax, dword [0x1017455c]
xor eax, esp
mov dword [esp + 0x27f4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1017455c]
xor eax, esp
push eax
lea eax, [esp + 0x280c]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esp + 0x281c]
mov edi, dword [esp + 0x2820]
mov ebx, dword [esp + 0x2824]
mov ebp, dword [esp + 0x2828]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x50], edi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
call fcn.10062b90
cmp dword [esp + 0x14], 0
mov dword [esp + 0x2814], 0
mov dword [ebp], 0
mov dword [ebx], 0
mov dword [edi], 0
je 0x10026e14
mov edx, dword [esp + 0x14]
mov byte [edx], 0
mov edi, edx
jmp 0x10026e18
mov edi, dword [esp + 0x14]
test esi, esi
je 0x10027879
cmp byte [esi], 0
je 0x10027879
lea edx, [esp + 0x1f0]
mov dword [esp + 0x38], 0
mov eax, esi
sub edx, esi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x10026e40
push 0
push 0
lea edx, [esp + 0x40]
lea ecx, [esp + 0x1f8]
call fcn.10044660
add esp, 8
test eax, eax
je 0x10026e88
test edi, edi
je 0x1002788b
lea eax, [esp + 0x1f0]
push eax
push str.Unable_to_find_file___s__
push edi
call fcn.1010d6a8
add esp, 0xc
jmp 0x1002788b
mov eax, dword [esp + 0x38]
test eax, eax
ja 0x10026eb4
test edi, edi
je 0x1002788b
push eax
lea ecx, [esp + 0x1f4]
push ecx
push str.FileSize_of___s__is__lu__Aborting_
push edi
call fcn.1010d6a8
add esp, 0x10
jmp 0x1002788b
xor eax, eax
jmp 0x10026ec0
mov cl, byte [esp + eax + 0x1f0]
mov byte [esp + eax + 0x600], cl
inc eax
test cl, cl
jne 0x10026ec0
push 0
push 0x1014874c
lea edx, [esp + 0x608]
push 0x101480dc
push edx
call fcn.10047ed0
push 0
push 0x1014874c
lea eax, [esp + 0x618]
push 0x10149ea8
push eax
call fcn.10047ed0
add esp, 0x20
push 0
push 1
lea ecx, [esp + 0x608]
push ecx
push 1
push 0
call sym.EncDec.dll_MyCreateMutex
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x10026f72
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp ebx, 0xffffffff
je 0x10026f72
call ebp
cmp eax, 0xb7
jne 0x10026f72
test ebx, ebx
je 0x10026f4f
lea edx, [esp + 0x18]
push edx
call fcn.100673f0
push 0x64
call esi
push 0
push 1
lea eax, [esp + 0x608]
push eax
push 1
push 0
call sym.EncDec.dll_MyCreateMutex
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x10026f33
xor eax, eax
jmp 0x10026f80
mov cl, byte [esp + eax + 0x1f0]
mov byte [esp + eax + 0x3f8], cl
inc eax
test cl, cl
jne 0x10026f80
lea eax, [esp + 0x3f8]
dec eax
jmp 0x10026fa0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10026fa0
mov ecx, dword [str..OUT]
mov dl, byte [0x10149ed4]
push 0x80
push 3
push 1
mov dword [eax], ecx
push closesocket
lea edi, [esp + 0x200]
mov byte [eax + 4], dl
call fcn.10033690
mov edi, eax
add esp, 0x10
mov dword [esp + 0x1c], edi
cmp edi, 0xffffffff
jne 0x10027052
push 0x103
lea eax, [esp + 0xf1]
push 0
push eax
mov byte [esp + 0xf8], 0
call fcn.10116880
add esp, 0xc
call ebp
push 0x104
mov edi, eax
lea esi, [esp + 0xf0]
call fcn.10049ce0
add esp, 4
cmp dword [esp + 0x14], 0
je 0x1002703c
mov eax, dword [esp + 0x14]
mov ecx, esi
push ecx
lea edx, [esp + 0x1f4]
push edx
push str.Error_Opening_File___s____s
push eax
call fcn.1010d6a8
add esp, 0x10
test ebx, ebx
je 0x1002788b
lea edi, [esp + 0x18]
call fcn.10057290
jmp 0x1002788b
push 0
push edi
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x48], eax
mov esi, eax
test eax, eax
je 0x1002708e
lea ecx, [ecx]
lea ecx, [esi + 0x10]
push ecx
call fcn.1010dced
mov ebp, eax
add esp, 4
mov dword [esp + 0x40], ebp
test ebp, ebp
jne 0x100270b8
sub esi, 0x800000
jne 0x10027070
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100270ac
lea edx, [esp + 0x1f0]
push edx
push str.Insufficient_Memory_handling_Events_File___s__
push eax
call fcn.1010d6a8
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call fcn.100673f0
jmp 0x1002703c
lea eax, [esi + 0x10]
push eax
push 0
push ebp
mov dword [esp + 0x50], esi
call fcn.10116880
add esp, 0xc
push 0
lea ecx, [esp + 0x28]
push ecx
push esi
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100275e8
jmp 0x100270f4
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x24], 0
mov ebx, dword [esp + 0x20]
jbe 0x1002769c
push 1
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x3c], eax
xor eax, eax
cmp dword [esp + 0x24], eax
jbe 0x10027131
lea esp, [esp]
cmp byte [eax + ebp], 0
jne 0x1002712a
mov byte [eax + ebp], 0x20
inc eax
cmp eax, dword [esp + 0x24]
jb 0x10027120
cmp byte [ebp], 0
je 0x1002772f
push 0x3b
push ebp
call fcn.1010d780
add esp, 8
test eax, eax
je 0x1002772f
mov esi, ebp
mov al, byte [esi]
cmp al, 0x20
je 0x10027162
cmp al, 0xa
je 0x10027162
cmp al, 0xd
je 0x10027162
cmp al, 9
jne 0x10027165
inc esi
jmp 0x10027150
mov dword [esp + 0x30], esi
test ebx, ebx
jne 0x10027190
lea edx, [esp + 0x3f8]
push 0x101493d8
push edx
call fcn.1010ebfe
mov ebx, eax
add esp, 8
mov dword [esp + 0x20], ebx
test ebx, ebx
je 0x1002767e
push 0x1fff
lea eax, [esp + 0x80d]
push 0
push eax
mov byte [esp + 0x814], 0
call fcn.10116880
add esp, 0xc
xor ebx, ebx
xor edi, edi
cmp byte [esi], 0
je 0x10027422
mov ebp, dword [esp + 0x30]
lea edx, [ebp - 0xa]
mov dword [esp + 0x34], edx
add ebp, 0xfffffff7
lea ebx, [ebx]
mov al, byte [esi]
cmp al, 0xd
je 0x10027412
cmp al, 0xa
je 0x10027412
cmp al, 0x3b
jne 0x10027412
cmp byte [esi + 3], 0x3a
jne 0x10027412
cmp byte [esi + 6], 0x3a
jne 0x10027412
cmp byte [esi + 9], al
jne 0x10027412
mov al, byte [esi - 1]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 2]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 3]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 4]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 5]
cmp al, 0x20
jne 0x100272af
cmp byte [ebp], al
jne 0x10027251
mov ebx, 0xfffffff5
jmp 0x100272df
cmp al, 0x20
jne 0x100272af
cmp byte [edx], al
jne 0x10027260
mov ebx, 0xfffffff4
jmp 0x100272df
cmp al, 0x20
jne 0x100272af
cmp byte [esi - 0xb], al
jne 0x10027270
mov ebx, 0xfffffff3
jmp 0x100272df
cmp al, 0x20
jne 0x100272af
mov cl, byte [esi - 7]
cmp cl, al
je 0x10027284
cmp byte [esi - 8], al
jne 0x100272af
cmp cl, al
jne 0x1002729a
cmp ebp, dword [esp + 0x30]
jb 0x100272d0
mov al, byte [ebp]
sub al, 0x30
cmp al, 9
ja 0x100272d0
mov ebx, 0xfffffff7
jmp 0x100272df
cmp edx, dword [esp + 0x30]
jb 0x10027293
mov al, byte [edx]
sub al, 0x30
cmp al, 9
ja 0x10027293
mov ebx, 0xfffffff6
jmp 0x100272df
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 6]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 7]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov al, byte [esi - 8]
sub al, 0x30
cmp al, 9
ja 0x100272d7
mov ebx, 0xfffffff8
jmp 0x100272df
test ebx, ebx
je 0x10027412
test edi, edi
je 0x1002740b
lea edx, [esi + ebx]
xor ecx, ecx
mov byte [esp + 0x808], 0
cmp edi, edx
jae 0x1002731f
mov al, byte [edi]
cmp al, 0xd
je 0x10027302
cmp al, 0xa
jne 0x1002730a
cmp byte [edi + 1], 0x5d
jne 0x1002731f
jmp 0x1002731a
cmp ecx, 0x1fff
jae 0x1002731a
mov byte [esp + ecx + 0x808], al
inc ecx
inc edi
cmp edi, edx
jb 0x100272f8
mov byte [esp + ecx + 0x808], 0
test ecx, ecx
jle 0x10027345
cmp byte [esp + ecx + 0x807], 0x20
jne 0x10027345
lea ecx, [esp + 0x808]
push ecx
call fcn.100454f0
add esp, 4
mov al, 0x3b
lea edx, [esp + 0x808]
call fcn.1005a900
cmp eax, 0xa
jge 0x100273a6
call fcn.100678a0
test eax, eax
je 0x1002737e
lea edx, [esp + 0x808]
push edx
lea eax, [esp + 0x1f4]
push eax
push str.INVALID_LINE_in___s_:___s__n
call fcn.1010e391
add esp, 0xc
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x808]
push ecx
lea edx, [esp + 0x1f4]
push edx
push str.INVALID_LINE_in___s_:___s_
push eax
call fcn.10053700
mov eax, dword [esp + 0x60]
add esp, 0x10
jmp 0x100273e4
lea ecx, [esp + 0x58]
push 0
push ecx
lea ecx, [esp + 0x810]
call fcn.10026a50
add esp, 8
test eax, eax
jne 0x100273e0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x808]
push edx
push str._s_r_n
push eax
call fcn.10110652
mov eax, dword [esp + 0x60]
add esp, 0xc
jmp 0x100273e4
mov eax, dword [esp + 0x28]
inc dword [eax]
xor eax, eax
cmp byte [esp + 0x808], al
je 0x1002740b
cmp eax, 0x2000
jae 0x1002740b
mov byte [esp + eax + 0x808], 0
inc eax
cmp byte [esp + eax + 0x808], 0
jne 0x100273f1
mov edx, dword [esp + 0x34]
lea edi, [esi + ebx]
inc esi
inc edx
inc ebp
cmp byte [esi], 0
mov dword [esp + 0x34], edx
jne 0x100271d0
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x48]
jne 0x1002758f
test edi, edi
je 0x1002756c
cmp byte [edi], 0
je 0x1002756c
xor ecx, ecx
mov dword [esp + 0x2c], 1
mov byte [esp + 0x808], 0
cmp edi, esi
jae 0x1002747e
mov al, byte [edi]
cmp al, 0xd
je 0x10027461
cmp al, 0xa
jne 0x10027469
cmp byte [edi + 1], 0x5d
jne 0x1002747e
jmp 0x10027479
cmp ecx, 0x1fff
jae 0x10027479
mov byte [esp + ecx + 0x808], al
inc ecx
inc edi
cmp edi, esi
jb 0x10027457
mov byte [esp + ecx + 0x808], 0
test ecx, ecx
jle 0x100274a4
cmp byte [esp + ecx + 0x807], 0x20
jne 0x100274a4
lea ecx, [esp + 0x808]
push ecx
call fcn.100454f0
add esp, 4
mov al, 0x3b
lea edx, [esp + 0x808]
call fcn.1005a900
cmp eax, 0xa
jge 0x10027505
call fcn.100678a0
test eax, eax
je 0x100274dd
lea edx, [esp + 0x808]
push edx
lea eax, [esp + 0x1f4]
push eax
push str.INVALID_LINE_in___s_:___s__n
call fcn.1010e391
add esp, 0xc
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x808]
push ecx
lea edx, [esp + 0x1f4]
push edx
push str.INVALID_LINE_in___s_:___s_
push eax
call fcn.10053700
mov eax, dword [esp + 0x60]
add esp, 0x10
jmp 0x10027543
lea ecx, [esp + 0x58]
push 0
push ecx
lea ecx, [esp + 0x810]
call fcn.10026a50
add esp, 8
test eax, eax
jne 0x1002753f
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x808]
push edx
push str._s_r_n
push eax
call fcn.10110652
mov eax, dword [esp + 0x60]
add esp, 0xc
jmp 0x10027543
mov eax, dword [esp + 0x28]
inc dword [eax]
xor eax, eax
cmp byte [esp + 0x808], al
je 0x100275b3
cmp eax, 0x2000
jae 0x100275b3
mov byte [esp + eax + 0x808], 0
inc eax
cmp byte [esp + eax + 0x808], 0
jne 0x10027550
jmp 0x100275b3
cmp dword [esp + 0x14], 0
je 0x100275b3
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x1f0]
push ecx
push str.No_Event_lines_found_in___s__
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x100275b3
cmp edi, esi
jae 0x1002759f
sub esi, edi
dec eax
sub esi, 1
jne 0x10027595
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x1c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
lea eax, [esi + 0x10]
push eax
push 0
push edi
call fcn.10116880
mov eax, dword [esp + 0x28]
add esp, 0xc
push 0
lea edx, [esp + 0x28]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebp, edi
test eax, eax
jne 0x100270f0
push 0x103
lea ecx, [esp + 0xf1]
push 0
push ecx
mov byte [esp + 0xf8], 0
call fcn.10116880
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0xf0]
call fcn.10049ce0
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
je 0x10027644
mov edx, esi
push edx
lea ecx, [esp + 0x1f4]
push ecx
push str.Error_Reading_Events_File___s____s
push eax
call fcn.1010d6a8
add esp, 0x10
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10027661
push eax
call fcn.1010f263
add esp, 4
lea eax, [esp + 0x3f8]
call fcn.10033960
push ebp
call fcn.1010dc10
add esp, 4
lea edx, [esp + 0x1c]
push edx
call fcn.100673f0
cmp dword [esp + 0x18], 0
jmp 0x1002703e
mov eax, dword [esp + 0x14]
test eax, eax
je 0x1002769c
lea ecx, [esp + 0x3f8]
push ecx
push str.Error_opening_output_file___s__
push eax
call fcn.1010d6a8
add esp, 0xc
test ebx, ebx
je 0x1002780d
push ebx
mov dword [esp + 0x2c], 0
call fcn.1010f263
add esp, 4
lea edx, [esp + 0x1c]
push edx
call fcn.100673f0
push 0
push 0
lea edx, [esp + 0x30]
lea ecx, [esp + 0x400]
call fcn.10044660
add esp, 8
test eax, eax
jne 0x1002780d
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x1002775e
lea eax, [esp + 0x3f8]
call fcn.10033960
cmp dword [esp + 0x14], 0
mov dword [esp + 0x2c], 0
je 0x1002780d
mov eax, dword [esp + 0x14]
cmp byte [eax], 0
jne 0x1002780d
lea ecx, [esp + 0x3f8]
push ecx
mov edx, eax
push str.Output_File_Created_is_of_ZERO_bytes___s__
push edx
call fcn.1010d6a8
add esp, 0xc
jmp 0x1002780d
test ebx, ebx
jne 0x100276a4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10027661
lea ecx, [esp + 0x1f0]
push ecx
push str.Invalid_Contents_in_Events_File___s__
push eax
call fcn.1010d6a8
add esp, 0xc
jmp 0x10027661
cmp eax, dword [esp + 0x38]
jne 0x1002777d
lea eax, [esp + 0x3f8]
call fcn.10033960
mov dword [esp + 0x2c], 1
jmp 0x1002780d
push 0
lea edi, [esp + 0x1f4]
lea ebx, [esp + 0x3fc]
call fcn.10063ba0
add esp, 4
test eax, eax
jne 0x10027801
xor ebx, ebx
push 0x103
lea eax, [esp + 0xf1]
push ebx
push eax
mov byte [esp + 0xf8], bl
call fcn.10116880
add esp, 0xc
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
mov edi, eax
lea esi, [esp + 0xf0]
call fcn.10049ce0
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
je 0x10027801
mov ecx, esi
push ecx
lea edx, [esp + 0x1f4]
push edx
lea ecx, [esp + 0x400]
push ecx
push str.Error_Copying_File_From___s__to___s___Reason:__s
push eax
call fcn.1010d6a8
add esp, 0x14
lea eax, [esp + 0x3f8]
call fcn.10033960
push ebp
call fcn.1010dc10
push 1
call fcn.1010ea1a
mov esi, eax
add esp, 8
mov dword [esp + 0x48], esi
lea ecx, [esp + 0x58]
mov byte [esp + 0x2814], 1
call fcn.10062ce0
push esi
mov byte [esp + 0x2818], 0
call fcn.1010e8a3
add esp, 4
lea edx, [esp + 0x1c]
push edx
call fcn.100673f0
cmp dword [esp + 0x18], 0
je 0x1002785f
lea edi, [esp + 0x18]
call fcn.10057290
lea ecx, [esp + 0x58]
mov dword [esp + 0x2814], 0xffffffff
call fcn.10062c60
mov eax, dword [esp + 0x2c]
jmp 0x100278a1
test edi, edi
je 0x1002788b
push str.Invalid_EventsTxt_parameter_
push edi
call fcn.1010d6a8
add esp, 8
lea ecx, [esp + 0x58]
mov dword [esp + 0x2814], 0xffffffff
call fcn.10062c60
xor eax, eax
mov ecx, dword [esp + 0x280c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x27f4]
xor ecx, esp
call fcn.1010d699
add esp, 0x2804
ret