Function at 0x475340
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c3695
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4f4164]
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 [0x4f9870]
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], 0x4d3e84
mov dword [ebp - 0x74], esi
cmp dword [eax], 0
mov dword [ebp - 0x70], 0
je 0x4753d6
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 0x4cb58c
push str._DLLPROTECT__::_DumpDllProtEvent___
push str._s_s
push 0x4cb58c
push 0
push esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
call fcn.0047d770
add esp, 0x18
mov byte [ebp - 0x60], 0
lea eax, [ebp - 0x40]
push dword [ebp - 0x60]
mov dword [ebp - 4], 0
push 0x4cb58c
push eax
call fcn.00469cd0
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.0047e370
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x475447
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x47543d
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x47584e
push ecx
push esi
call fcn.00450975
add esp, 8
cmp dword [ebp - 0x60], 0
je 0x4755c9
push edi
lea ecx, [ebp - 0x40]
call fcn.00405c80
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x475494
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47548a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475853
push edx
push ecx
call fcn.00450975
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 0x4754b0
mov eax, dword [edi]
push 0x80
push 4
push 6
push 0xc0000004
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00482b90
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 0x4755d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x47554d
mov esi, dword [ebp - 0x60]
test esi, esi
jle 0x47554d
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 0x4754a6
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x47553e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475853
push edx
push ecx
call fcn.00450975
add esp, 8
jmp 0x4754a6
lea eax, [ebp - 0xd0]
push eax
call fcn.00478090
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 0x47558f
push str.cannot_open_write_file
push str._DLLPROTECT__::_DumpDllProtEvent____
push 0
call fcn.0047d8a0
add esp, 0xc
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x4755c9
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4755bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475853
push edx
push ecx
call fcn.00450975
add esp, 8
mov byte [ebp - 0x59], 0
jmp 0x475828
mov edx, dword [ebp - 0x30]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x475610
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x475606
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475853
push edx
push ecx
call fcn.00450975
add esp, 8
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x60], ecx
push edi
call fcn.00405c80
call fcn.0047aa70
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 0x475664
cmp dword [ebp - 0x54], 0
jl 0x475664
jg 0x475654
cmp dword [ebp - 0x58], 0xa00000
jbe 0x475664
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 0x47569a
mov ecx, dword [edi]
push dword [edi + 0x10]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0x2c], 0x10
lea eax, [edi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x4756be
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0x44], 0x10
lea eax, [edi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x4756e0
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0x5c], 0x10
lea eax, [edi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x475702
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0x74], 0x10
lea eax, [edi + 0x60]
mov ecx, dword [eax + 0x10]
jb 0x475724
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0x8c], 0x10
lea eax, [edi + 0x78]
mov ecx, dword [eax + 0x10]
jb 0x475749
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0xa4], 0x10
lea eax, [edi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x475771
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
cmp dword [edi + 0xbc], 0x10
lea eax, [edi + 0xa8]
mov ecx, dword [eax + 0x10]
jb 0x475799
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0042bc20
push 0x7c
lea ecx, [ebp - 0x28]
call fcn.00432b40
lea eax, [ebp - 0x28]
push eax
push esi
call fcn.00475860
add esp, 8
test al, al
jne 0x475815
lea eax, [ebp - 0xd0]
push eax
call fcn.00478090
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 0x475800
push str.DumpEventToFile_failed
push str._DLLPROTECT__::_DumpDllProtEvent____
push 0
call fcn.0047d8a0
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.004094a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x80]
call fcn.00472d10
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.00450df0
mov esp, ebp
pop ebp
ret
call fcn.004984ff
call fcn.004984ff
int3