Function at 0x4618c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af3e5
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4d9164]
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, dword [0x4dcf40]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x68], eax
mov eax, dword [esi]
movlpd qword [ebp - 0x80], xmm0
mov dword [ebp - 0x78], 0x4b7404
mov dword [ebp - 0x74], esi
cmp dword [eax], 0
mov dword [ebp - 0x70], 0
je 0x461956
lea eax, [ebp - 0x50]
movlpd qword [ebp - 0x50], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
push 0x4c436b
push str._DLLPROTECT__::_DumpDllProtEvent___
push str._s_s
push 0x4c436b
push 0
push esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
call fcn.00469df0
add esp, 0x18
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x40]
push dword [ebp - 0x60]
mov dword [ebp - 4], 0
push 0x4c436b
push eax
call fcn.004566a0
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x40]
add esp, 0xc
mov ecx, edi
cmp dword [ebp - 0x2c], 8
cmovae eax, esi
push dword [ebp - 0x30]
push eax
call fcn.0046a990
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4619c7
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4619bd
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461dce
push ecx
push esi
call fcn.00481131
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x461b49
push edi
lea ecx, [ebp - 0x40]
call fcn.0041ea30
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x461a14
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461a0a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461dd3
push edx
push ecx
call fcn.00481131
add esp, 8
mov dword [ebp - 0x64], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0x60], 0xa
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x461a30
mov eax, dword [edi]
push 0x80
push 4
push 6
push 0xc0000004
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0046f140
add esp, 0x18
mov esi, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x2c], 0xffffffff
cmp esi, 0xffffffff
jne 0x461b52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x461acd
mov esi, dword [ebp - 0x60]
test esi, esi
jle 0x461acd
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x30]
dec esi
mov dword [ebp - 0x60], esi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x461a26
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461abe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461dd3
push edx
push ecx
call fcn.00481131
add esp, 8
jmp 0x461a26
lea eax, [ebp - 0xd0]
push eax
call fcn.00464620
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x88], xmm0
cmp dword [eax], 0
je 0x461b0f
push str.cannot_open_write_file
push str._DLLPROTECT__::_DumpDllProtEvent____
push 0
call fcn.00469f30
add esp, 0xc
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x461b49
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461b3f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461dd3
push edx
push ecx
call fcn.00481131
add esp, 8
mov byte [ebp - 0x59], 0
jmp 0x461da8
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x461b90
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x461b86
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x461dd3
push edx
push ecx
call fcn.00481131
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], ecx
push edi
call fcn.0041ea30
call fcn.00467000
add esp, 0x18
lea eax, [ebp - 0x58]
xorps xmm0, xmm0
movq qword [ebp - 0x58], xmm0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x461be4
cmp dword [ebp - 0x54], 0
jl 0x461be4
jg 0x461bd4
cmp dword [ebp - 0x58], 0xa00000
jbe 0x461be4
push 0
push 0
push 0
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 2
push 0
push 0
push esi
call edi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edi, dword [ebp - 0x68]
mov ecx, edi
mov byte [ebp - 4], 3
cmp dword [edi + 0x14], 0x10
jb 0x461c1a
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x461c3e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x461c60
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x461c82
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
mov ecx, dword [eax + 0x10]
jb 0x461ca4
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0x8c], 0x10
lea eax, [edi + 0x78]
mov ecx, dword [eax + 0x10]
jb 0x461cc9
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x461cf1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
cmp dword [edi + 0xbc], 0x10
lea eax, [edi + 0xa8]
mov ecx, dword [eax + 0x10]
jb 0x461d19
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.004223b0
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.004221b0
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00461de0
add esp, 8
test al, al
jne 0x461d95
lea eax, [ebp - 0xd0]
push eax
call fcn.00464620
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x98], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x88], xmm0
cmp dword [eax], 0
je 0x461d80
push str.DumpEventToFile_failed
push str._DLLPROTECT__::_DumpDllProtEvent____
push 0
call fcn.00469f30
add esp, 0xc
push 0
push 0
push dword [ebp - 0x60]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x59], 1
call fcn.0040df30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.0045f290
mov al, byte [ebp - 0x59]
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.004810ea
mov esp, ebp
pop ebp
ret
call fcn.004861f9
call fcn.004861f9
int3