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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43967c
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x44f014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x484], esi
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x458]
push 1
push 0x449cbc
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x444], eax
call fcn.00402040
mov byte [ebp - 4], 1
lea edx, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
lea edi, [esi + 0x4c]
cmovae edx, dword [ebp - 0x458]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410cc3
sub ecx, esi
mov eax, edi
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x410cdc
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
push ecx
push edx
push ecx
mov edx, esi
mov ecx, eax
call fcn.0040b8c0
add esp, 0xc
mov dword [ebp - 0x440], 0
cmp esi, eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
mov ecx, edi
cmovb eax, esi
cmp dword [edi + 0x14], 8
jb 0x410d1b
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x440]
call fcn.00402040
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x410d68
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410d5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112d0
push ecx
push edx
call fcn.00417151
add esp, 8
movups xmm0, xmmword [ebp - 0x440]
mov esi, dword [ebp - 0x448]
mov eax, 0x7ffffffe
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [ebp - 0x430]
movq qword [ebp - 0x418], xmm0
mov edx, dword [ebp - 0x418]
sub eax, edx
cmp eax, esi
jb 0x4112c1
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x428]
push esi
cmovae ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x458]
cmp dword [ebp - 0x444], 8
cmovae eax, dword [ebp - 0x458]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x48c]
lea ecx, [ebp - 0x478]
call fcn.0040c950
push str.asu.trace
lea edx, [ebp - 0x478]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x440]
call fcn.00401f70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x428]
cmp eax, esi
je 0x410e8d
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x410e4c
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410e42
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112c6
push ecx
push edx
call fcn.00417151
add esp, 8
mov dword [ebp - 0x418], 0
xor eax, eax
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x428], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x418], xmm0
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0x42c]
cmp ecx, 8
jb 0x410ecd
mov edx, dword [ebp - 0x440]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410ec3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112c6
push ecx
push edx
call fcn.00417151
add esp, 8
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x464]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
mov word [ebp - 0x440], ax
cmp ecx, 8
jb 0x410f2e
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x410f24
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112c6
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [ebp - 0x484]
mov eax, dword [ecx + 0x64]
cmp eax, 0xa
je 0x410f59
cmp eax, 0x14
je 0x410f4d
mov dword [ebp - 0x488], 0xa00000
jmp 0x410f63
mov dword [ebp - 0x488], 0x1400000
jmp 0x410f63
mov dword [ebp - 0x488], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00418fc0
cmp dword [ebp - 0x414], 8
lea eax, [ebp - 0x428]
push str.rb__ccsUTF_8
cmovae eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x47c], 0
push eax
call fcn.0042018d
mov eax, dword [ebp - 0x47c]
add esp, 0x18
test eax, eax
je 0x410fd2
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.0042192b
push dword [ebp - 0x47c]
call fcn.004202f9
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x410fdc
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x490], esi
cmp esi, 0xffffffff
je 0x41121f
lea eax, [ebp - 0x460]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411218
mov eax, dword [ebp - 0x460]
push dword [ebp - 0x490]
mov esi, dword [ebp - 0x45c]
mov dword [ebp - 0x48c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 1
test esi, esi
jl 0x411226
jg 0x41105d
mov eax, dword [ebp - 0x48c]
cmp eax, dword [ebp - 0x488]
jb 0x411226
mov eax, dword [ebp - 0x484]
lea esi, [eax + 0x68]
mov byte [eax + 0xd0], 1
mov eax, dword [esi]
test eax, eax
je 0x41107a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x478]
call fcn.00403380
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.00415720
push ecx
lea edx, [ebp - 0x478]
mov ecx, edi
call fcn.00410a60
add esp, 4
test al, al
je 0x411102
push 1
mov ecx, edi
call fcn.00413540
add esp, 4
test eax, eax
je 0x4110ce
cmp eax, 1
jne 0x411102
push ecx
mov ecx, edi
call fcn.0040f690
add esp, 4
test al, al
je 0x411102
cmp dword [edi + 0x14], 8
jb 0x4110d6
mov edi, dword [edi]
push 0
push 0x200080
push 5
push 0
push 3
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
test eax, eax
je 0x411102
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov edi, dword [ebp - 0x484]
push esi
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x43b228]
mov ecx, edi
call esi
push 8
push str.keeplogs
lea ecx, [ebp - 0x440]
mov byte [ebp - 0x47d], al
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
call fcn.0040bbf0
mov byte [ebp - 4], 4
lea eax, [ebp - 0x440]
mov edi, dword [ebp - 0x42c]
lea ecx, [ebp - 0x410]
mov esi, dword [ebp - 0x440]
cmp edi, 0x10
cmovae eax, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x411191
test dl, dl
je 0x41118d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x411191
add ecx, 2
add eax, 2
test dl, dl
jne 0x411171
xor eax, eax
jmp 0x411196
sbb eax, eax
or eax, 1
test eax, eax
je 0x4111a6
push ecx
mov ecx, dword [ebp - 0x484]
call fcn.00406120
cmp edi, 0x10
jb 0x4111d6
lea ecx, [edi + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x4111cc
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112cb
push ecx
push esi
call fcn.00417151
add esp, 8
mov ecx, dword [ebp - 0x464]
cmp ecx, 8
jb 0x411226
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41120c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112cb
push ecx
push edx
call fcn.00417151
add esp, 8
jmp 0x411226
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 0
mov ecx, dword [ebp - 0x444]
cmp ecx, 8
jb 0x411262
mov edx, dword [ebp - 0x458]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411258
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112d0
push ecx
push edx
call fcn.00417151
add esp, 8
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x41129e
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x411294
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4112d0
push ecx
push edx
call fcn.00417151
add esp, 8
mov al, byte [ebp - 0x47d]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416ec0
mov esp, ebp
pop ebp
ret 4
call fcn.004012c0
call fcn.0041c06f
call fcn.0041c06f
call fcn.0041c06f
int3