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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43f82c
mov eax, dword fs:[0]
push eax
sub esp, 0x484
mov eax, dword [0x456014]
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 - 0x488], 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 - 0x460]
push 1
push 0x44fc9c
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
call fcn.00402120
mov byte [ebp - 4], 1
lea edx, [ebp - 0x460]
cmp dword [ebp - 0x44c], 8
lea edi, [esi + 0x4c]
cmovae edx, dword [ebp - 0x460]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414923
sub ecx, esi
mov eax, edi
sar ecx, 1
cmp dword [edi + 0x14], 8
jb 0x41493c
mov eax, dword [edi]
mov esi, dword [edi + 0x10]
push ecx
push edx
push ecx
mov edx, esi
mov ecx, eax
call fcn.0040cb30
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 0x41497b
mov ecx, dword [edi]
push eax
push ecx
lea ecx, [ebp - 0x440]
call fcn.00402120
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x4149c8
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4149be
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ec3
push ecx
push edx
call fcn.0041cdfe
add esp, 8
movups xmm0, xmmword [ebp - 0x440]
mov esi, dword [ebp - 0x450]
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 0x414eb4
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x428]
push esi
cmovae ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x460]
cmp dword [ebp - 0x44c], 8
cmovae eax, dword [ebp - 0x460]
push eax
push edx
push ecx
push ecx
push dword [ebp - 0x48c]
lea ecx, [ebp - 0x478]
call fcn.0040d950
push 9
push str.asu.trace
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 2
call fcn.00401fa0
xor ecx, ecx
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov ecx, dword [ebp - 0x414]
movq qword [ebp - 0x448], xmm1
movups xmmword [ebp - 0x438], xmm0
cmp ecx, 8
jb 0x414ace
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414ab5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414eb9
push ecx
push edx
call fcn.0041cdfe
movups xmm0, xmmword [ebp - 0x438]
add esp, 8
movq xmm1, qword [ebp - 0x448]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x464]
movq qword [ebp - 0x418], xmm1
movups xmmword [ebp - 0x428], xmm0
cmp ecx, 8
jb 0x414b21
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414b17
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414eb9
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov eax, dword [ebp - 0x488]
mov eax, dword [eax + 0x64]
cmp eax, 0xa
je 0x414b4c
cmp eax, 0x14
je 0x414b40
mov dword [ebp - 0x484], 0xa00000
jmp 0x414b56
mov dword [ebp - 0x484], 0x1400000
jmp 0x414b56
mov dword [ebp - 0x484], 0x3200000
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.0041ef60
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.0042614d
mov eax, dword [ebp - 0x47c]
add esp, 0x18
test eax, eax
je 0x414bc5
push eax
push 9
lea eax, [ebp - 0x410]
push 1
push eax
call fcn.004278d0
push dword [ebp - 0x47c]
call fcn.004262b9
add esp, 0x14
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x414bcf
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 0x414e12
lea eax, [ebp - 0x448]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x414e0b
mov eax, dword [ebp - 0x448]
push dword [ebp - 0x490]
mov esi, dword [ebp - 0x444]
mov dword [ebp - 0x48c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 1
test esi, esi
jl 0x414e19
jg 0x414c50
mov eax, dword [ebp - 0x48c]
cmp eax, dword [ebp - 0x484]
jb 0x414e19
mov eax, dword [ebp - 0x488]
lea esi, [eax + 0x68]
mov byte [eax + 0xd0], 1
mov eax, dword [esi]
test eax, eax
je 0x414c6d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x478]
call fcn.004047a0
lea ecx, [ebp - 0x478]
mov byte [ebp - 4], 3
call fcn.0041b630
push ecx
lea edx, [ebp - 0x478]
mov ecx, edi
call fcn.004146c0
add esp, 4
test al, al
je 0x414cf5
push 1
mov ecx, edi
call fcn.00416d40
add esp, 4
test eax, eax
je 0x414cc1
cmp eax, 1
jne 0x414cf5
push ecx
mov ecx, edi
call fcn.00413b20
add esp, 4
test al, al
je 0x414cf5
cmp dword [edi + 0x14], 8
jb 0x414cc9
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 0x414cf5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov edi, dword [ebp - 0x488]
push esi
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x44123c]
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.00403380
mov byte [ebp - 4], 4
lea eax, [ebp - 0x440]
cmp dword [ebp - 0x42c], 0x10
lea ecx, [ebp - 0x410]
mov esi, dword [ebp - 0x440]
cmovae eax, esi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x414d82
test dl, dl
je 0x414d7e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x414d82
add ecx, 2
add eax, 2
test dl, dl
jne 0x414d62
xor eax, eax
jmp 0x414d87
sbb eax, eax
or eax, 1
test eax, eax
je 0x414d93
push ecx
mov ecx, edi
call fcn.00407660
mov eax, dword [ebp - 0x42c]
cmp eax, 0x10
jb 0x414dc9
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x414dbf
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ebe
push ecx
push esi
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0x464]
cmp ecx, 8
jb 0x414e19
mov edx, dword [ebp - 0x478]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414dff
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ebe
push ecx
push edx
call fcn.0041cdfe
add esp, 8
jmp 0x414e19
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x47d], 0
mov ecx, dword [ebp - 0x44c]
cmp ecx, 8
jb 0x414e55
mov edx, dword [ebp - 0x460]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414e4b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ec3
push ecx
push edx
call fcn.0041cdfe
add esp, 8
mov ecx, dword [ebp - 0x414]
cmp ecx, 8
jb 0x414e91
mov edx, dword [ebp - 0x428]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x414e87
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414ec3
push ecx
push edx
call fcn.0041cdfe
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.0041cdc0
mov esp, ebp
pop ebp
ret 4
call fcn.004012b0
call fcn.0042200f
call fcn.0042200f
call fcn.0042200f
int3