Function at 0x4b63a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c24b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x54c154]
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 0x513edc
push eax
mov dword [ebp - 0xc0], 0x203e2d20
mov byte [ebp - 0xbc], 0
call fcn.004ae9a0
mov esi, eax
lea eax, [ebp - 0x128]
push str._DLLPROTECT__::
push eax
call fcn.004ae9a0
push esi
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.004a5da0
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.004a7870
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.004a87c0
lea eax, [ebp - 0x128]
mov dword [ebp - 0xc0], 0x202d3c20
push 0x513edc
push eax
mov byte [ebp - 0xbc], 0
call fcn.004ae9a0
mov esi, eax
lea eax, [ebp - 0x50]
push str._DLLPROTECT__::
push eax
call fcn.004ae9a0
add esp, 0x44
push esi
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.004a5da0
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.004a7870
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004a87c0
mov esi, dword [0x5569f0]
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 0x4b6525
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 0x5206ef
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xb4]
push eax
push str._s_s
push 0x5206ef
push 0
push esi
mov dword [ebp - 0xe0], ecx
call fcn.004bf2b0
add esp, 0x18
mov byte [ebp - 0xc4], 0
lea eax, [ebp - 0x54]
push dword [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0x5206ef
push eax
call fcn.004aa2a0
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.0047a560
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x4b659f
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x4b6595
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a8c
push ecx
push esi
call fcn.004a44fe
add esp, 8
cmp dword [ebp - 0xc4], 0
je 0x4b678d
push edi
lea ecx, [ebp - 0x54]
call fcn.0040f220
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x4b65ef
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b65e5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a91
push edx
push ecx
call fcn.004a44fe
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 0x4b6611
mov eax, dword [edi]
push 0x80
push 4
push 6
push 0xc0000004
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004c4640
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 0x4b6799
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x4b66b7
mov esi, dword [ebp - 0xc4]
test esi, esi
jle 0x4b66b7
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 0x4b6607
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b66a8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a91
push edx
push ecx
call fcn.004a44fe
add esp, 8
jmp 0x4b6607
lea eax, [ebp - 0x194]
push eax
call fcn.004b9ca0
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 0x4b6753
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.004aea30
mov esi, eax
lea eax, [ebp - 0x138]
push 0x513e38
push eax
call fcn.004aea30
push esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.004a5ea0
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.004a79a0
add esp, 0xc
push eax
push 0
call fcn.004bf3e0
add esp, 0xc
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x4b678d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b6783
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a91
push edx
push ecx
call fcn.004a44fe
add esp, 8
mov byte [ebp - 0xb5], 0
jmp 0x4b6a60
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x4b67d7
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b67cd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b6a91
push edx
push ecx
call fcn.004a44fe
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], ecx
push edi
call fcn.0040f220
call fcn.004bbdc0
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 0x4b682e
cmp dword [ebp - 0x60], 0
jl 0x4b682e
jg 0x4b681e
cmp dword [ebp - 0x64], 0xa00000
jbe 0x4b682e
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 0x4b686a
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x4b688e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x4b68b0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x4b68d2
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
mov ecx, dword [eax + 0x10]
jb 0x4b68f4
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0x8c], 0x10
lea eax, [edi + 0x78]
mov ecx, dword [eax + 0x10]
jb 0x4b6919
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x4b6941
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
mov eax, dword [edi + 0xb8]
add edi, 0xa8
cmp dword [edi + 0x14], 0x10
jb 0x4b6969
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00410220
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.0043cc30
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.004b6aa0
add esp, 8
test al, al
jne 0x4b6a4a
lea eax, [ebp - 0x1c0]
push eax
call fcn.004b9ca0
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 0x4b6a32
lea eax, [ebp - 0x144]
push 0x513e08
push eax
call fcn.004ae850
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x1fc]
push str.DumpDllProtEvent
push eax
call fcn.004aea30
mov edi, eax
lea eax, [ebp - 0x190]
push 0x513e38
push eax
call fcn.004aea30
push edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.004a5ea0
add esp, 0x24
push str.DumpEventToFile_failed
push dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004a79a0
add esp, 0xc
push eax
push 0
call fcn.004bf3e0
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.00406280
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xe4]
call fcn.004b3f20
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.004a44cd
mov esp, ebp
pop ebp
ret
call fcn.004da7c4
call fcn.004da7c4
int3