Function at 0x4aab00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x502c1b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x53d058]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x3c]
push 0x50947c
push eax
mov dword [ebp - 0xc0], 0x203e2d20
mov byte [ebp - 0xbc], 0
call fcn.004a3070
mov esi, eax
lea eax, [ebp - 0x128]
push str._DLLPROTECT__::
push eax
call fcn.004a3070
push esi
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0049a200
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0049bcd0
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0049cc20
lea eax, [ebp - 0x128]
mov dword [ebp - 0xc0], 0x202d3c20
push 0x50947c
push eax
mov byte [ebp - 0xbc], 0
call fcn.004a3070
mov esi, eax
lea eax, [ebp - 0x50]
push str._DLLPROTECT__::
push eax
call fcn.004a3070
add esp, 0x44
push esi
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0049a200
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0049bcd0
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0049cc20
mov esi, dword [0x544890]
lea eax, [ebp - 0x8c]
mov dword [ebp - 0xdc], eax
add esp, 0x24
xorps xmm0, xmm0
mov dword [ebp - 0xd8], esi
movlpd qword [ebp - 0xe4], xmm0
mov eax, dword [esi]
mov dword [ebp - 0xd4], 0
cmp dword [eax], 0
je 0x4aac85
lea eax, [ebp - 0x34]
movlpd qword [ebp - 0x34], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
push 0x515fb3
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xb4]
push eax
push str._s_s
push 0x515fb3
push 0
push esi
mov dword [ebp - 0xe0], ecx
call fcn.004b4f70
add esp, 0x18
mov byte [ebp - 0xc4], 0
lea eax, [ebp - 0x54]
push dword [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0x515fb3
push eax
call fcn.0049e700
mov esi, dword [ebp - 0x54]
lea eax, [ebp - 0x54]
add esp, 0xc
mov ecx, edi
cmp dword [ebp - 0x40], 8
cmovae eax, esi
push dword [ebp - 0x44]
push eax
call fcn.0046ff90
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x4aacff
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4aacf5
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab1ec
push ecx
push esi
call fcn.0049855b
add esp, 8
cmp dword [ebp - 0xc4], 0
je 0x4aaeed
push edi
lea ecx, [ebp - 0x54]
call fcn.0040bca0
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x4aad4f
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aad45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab1f1
push edx
push ecx
call fcn.0049855b
add esp, 8
mov dword [ebp - 0xc0], 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebp - 0xc4], 0xa
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4aad71
mov eax, dword [edi]
push 0x80
push 4
push 6
push 0xc0000004
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004ba510
add esp, 0x18
mov esi, dword [ebp - 0x40]
mov byte [ebp - 4], 2
mov dword [ebp - 0xc0], esi
mov dword [ebp - 0x40], 0xffffffff
cmp esi, 0xffffffff
jne 0x4aaef9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4aae17
mov esi, dword [ebp - 0xc4]
test esi, esi
jle 0x4aae17
push 0xa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x44]
dec esi
mov dword [ebp - 0xc4], esi
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4aad67
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aae08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab1f1
push edx
push ecx
call fcn.0049855b
add esp, 8
jmp 0x4aad67
lea eax, [ebp - 0x194]
push eax
call fcn.004ae6d0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0xf4], xmm0
cmp dword [eax], 0
je 0x4aaeb3
lea eax, [ebp - 0x16c]
mov dword [ebp - 0x38], 0x290028
push str.DumpDllProtEvent
push eax
mov dword [ebp - 0x34], 0x2d0020
mov dword [ebp - 0x30], 0x20
call fcn.004a3100
mov esi, eax
lea eax, [ebp - 0x138]
push 0x5093d8
push eax
call fcn.004a3100
push esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.0049a300
add esp, 0x1c
lea ecx, [ebp - 0x38]
push str.cannot_open_write_file
push ecx
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0049be00
add esp, 0xc
push eax
push 0
call fcn.004b50a0
add esp, 0xc
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4aaeed
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaee3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab1f1
push edx
push ecx
call fcn.0049855b
add esp, 8
mov byte [ebp - 0xb5], 0
jmp 0x4ab1c0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4aaf37
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aaf2d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab1f1
push edx
push ecx
call fcn.0049855b
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], ecx
push edi
call fcn.0040bca0
call fcn.004b1900
add esp, 0x18
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
movq qword [ebp - 0x64], xmm0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x4aaf8e
cmp dword [ebp - 0x60], 0
jl 0x4aaf8e
jg 0x4aaf7e
cmp dword [ebp - 0x64], 0xa00000
jbe 0x4aaf8e
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 - 0xc4], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov edi, dword [ebp - 0xc8]
mov ecx, edi
mov byte [ebp - 4], 3
cmp dword [edi + 0x14], 0x10
jb 0x4aafca
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x4aafee
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x4ab010
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x4ab032
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
mov ecx, dword [eax + 0x10]
jb 0x4ab054
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0x8c], 0x10
lea eax, [edi + 0x78]
mov ecx, dword [eax + 0x10]
jb 0x4ab079
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x4ab0a1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
mov eax, dword [edi + 0xb8]
add edi, 0xa8
cmp dword [edi + 0x14], 0x10
jb 0x4ab0c9
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040c040
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0042a260
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004ab200
add esp, 8
test al, al
jne 0x4ab1aa
lea eax, [ebp - 0x1c0]
push eax
call fcn.004ae6d0
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0x104], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0xf4], xmm0
cmp dword [eax], 0
je 0x4ab192
lea eax, [ebp - 0x144]
push 0x5093a8
push eax
call fcn.004a2f20
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x1fc]
push str.DumpDllProtEvent
push eax
call fcn.004a3100
mov edi, eax
lea eax, [ebp - 0x190]
push 0x5093d8
push eax
call fcn.004a3100
push edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0049a300
add esp, 0x24
push str.DumpEventToFile_failed
push dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0049be00
add esp, 0xc
push eax
push 0
call fcn.004b50a0
add esp, 0xc
push 0
push 0
push dword [ebp - 0xc4]
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 - 0xb5], 1
call fcn.004032e0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xe4]
call fcn.004a8670
mov al, byte [ebp - 0xb5]
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.0049852a
mov esp, ebp
pop ebp
ret
call fcn.004d076f
call fcn.004d076f
int3