Function at 0x46da20
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d762b
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x507254]
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 0x4dcfe4
push eax
mov dword [ebp - 0xc0], 0x203e2d20
mov byte [ebp - 0xbc], 0
call fcn.00465f60
mov esi, eax
lea eax, [ebp - 0x128]
push str._DLLPROTECT__::
push eax
call fcn.00465f60
push esi
push eax
lea eax, [ebp - 0xec]
push eax
call fcn.0045d1b0
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0045ec80
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0045fbd0
lea eax, [ebp - 0x128]
mov dword [ebp - 0xc0], 0x202d3c20
push 0x4dcfe4
push eax
mov byte [ebp - 0xbc], 0
call fcn.00465f60
mov esi, eax
lea eax, [ebp - 0x50]
push str._DLLPROTECT__::
push eax
call fcn.00465f60
add esp, 0x44
push esi
push eax
lea eax, [ebp - 0x168]
push eax
call fcn.0045d1b0
lea ecx, [ebp - 0xc0]
push ecx
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0045ec80
lea ecx, [ebp - 0xb5]
push ecx
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.0045fbd0
mov esi, dword [0x50a6f0]
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 0x46dba5
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 0x4eb7ca
mov dword [ebp - 0xe4], eax
lea eax, [ebp - 0xb4]
push eax
push str._s_s
push 0x4eb7ca
push 0
push esi
mov dword [ebp - 0xe0], ecx
call fcn.00477e30
add esp, 0x18
mov byte [ebp - 0xc4], 0
lea eax, [ebp - 0x54]
push dword [ebp - 0xc4]
mov dword [ebp - 4], 0
push 0x4eb7ca
push eax
call fcn.004616b0
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.00414780
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0x40]
cmp eax, 8
jb 0x46dc1f
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x46dc15
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e10c
push ecx
push esi
call fcn.004a6287
add esp, 8
cmp dword [ebp - 0xc4], 0
je 0x46de0d
push edi
lea ecx, [ebp - 0x54]
call fcn.00403010
mov edx, dword [ebp - 0x40]
cmp edx, 8
jb 0x46dc6f
mov ecx, dword [ebp - 0x54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dc65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e111
push edx
push ecx
call fcn.004a6287
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 0x46dc91
mov eax, dword [edi]
push 0x80
push 4
push 6
push 0xc0000004
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0047d2d0
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 0x46de19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x46dd37
mov esi, dword [ebp - 0xc4]
test esi, esi
jle 0x46dd37
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 0x46dc87
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46dd28
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e111
push edx
push ecx
call fcn.004a6287
add esp, 8
jmp 0x46dc87
lea eax, [ebp - 0x194]
push eax
call fcn.004715e0
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 0x46ddd3
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.00465ff0
mov esi, eax
lea eax, [ebp - 0x138]
push 0x4dcf40
push eax
call fcn.00465ff0
push esi
push eax
lea eax, [ebp - 0x1d8]
push eax
call fcn.0045d2b0
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.0045edb0
add esp, 0xc
push eax
push 0
call fcn.00477f60
add esp, 0xc
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x46de0d
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e111
push edx
push ecx
call fcn.004a6287
add esp, 8
mov byte [ebp - 0xb5], 0
jmp 0x46e0e0
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x46de57
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46de4d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46e111
push edx
push ecx
call fcn.004a6287
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xc4], ecx
push edi
call fcn.00403010
call fcn.00474810
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 0x46deae
cmp dword [ebp - 0x60], 0
jl 0x46deae
jg 0x46de9e
cmp dword [ebp - 0x64], 0xa00000
jbe 0x46deae
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 0x46deea
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x46df0e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x46df30
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x46df52
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
mov ecx, dword [eax + 0x10]
jb 0x46df74
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0x8c], 0x10
lea eax, [edi + 0x78]
mov ecx, dword [eax + 0x10]
jb 0x46df99
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x46dfc1
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
mov eax, dword [edi + 0xb8]
add edi, 0xa8
cmp dword [edi + 0x14], 0x10
jb 0x46dfe9
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.00403580
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00406270
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.0046e120
add esp, 8
test al, al
jne 0x46e0ca
lea eax, [ebp - 0x1c0]
push eax
call fcn.004715e0
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 0x46e0b2
lea eax, [ebp - 0x144]
push 0x4dcf10
push eax
call fcn.00465e10
mov dword [ebp - 0xc8], eax
lea eax, [ebp - 0x1fc]
push str.DumpDllProtEvent
push eax
call fcn.00465ff0
mov edi, eax
lea eax, [ebp - 0x190]
push 0x4dcf40
push eax
call fcn.00465ff0
push edi
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.0045d2b0
add esp, 0x24
push str.DumpEventToFile_failed
push dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.0045edb0
add esp, 0xc
push eax
push 0
call fcn.00477f60
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.00403e90
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0xe4]
call fcn.0046b520
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.004a6256
mov esp, ebp
pop ebp
ret
call fcn.004ab23f
call fcn.004ab23f
int3