Function at 0x475860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c36f9
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
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 eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], 0
mov edi, dword [0x4f9870]
mov dword [ebp - 0x5c], eax
movlpd qword [ebp - 0x74], xmm0
mov dword [ebp - 0x6c], 0x4d3d90
mov eax, dword [edi]
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], 0
cmp dword [eax], 0
je 0x4758fd
lea eax, [ebp - 0x3c]
movlpd qword [ebp - 0x3c], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
push 0x4cb58c
push str._DLLPROTECT__::_DumpEventToFile___
push str._s_s
push 0x4cb58c
push 0
push edi
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], ecx
call fcn.0047d770
add esp, 0x18
lea eax, [ebp - 0xdc]
mov dword [ebp - 4], 0
push eax
call fcn.00478090
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x94], xmm0
cmp dword [eax], 0
je 0x47599e
cmp dword [esi + 0x14], 0x10
mov ecx, esi
jb 0x47593c
mov ecx, dword [esi]
mov eax, dword [esi + 0x10]
sub esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, esp
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x1c]
push 0x11
mov dword [eax], 0xd
mov dword [eax + 4], 0
mov dword [eax + 8], ecx
lea eax, [ebp - 0x8c]
push str.event_dump_is:_
push eax
call fcn.00490cc0
mov dword [ebp - 0x14], 3
lea eax, [ebp - 0x8c]
cmp dword [ebp - 0x78], 0x10
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x8c]
push eax
push 0
push 0x4d3dec
push 0
call fcn.0047d640
add esp, 0x2c
test byte [ebp - 0x14], 1
mov dword [ebp - 4], 0
je 0x4759e2
mov edx, dword [ebp - 0x78]
cmp edx, 0x10
jb 0x4759e2
mov ecx, dword [ebp - 0x8c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4759d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475bcd
push edx
push ecx
call fcn.00450975
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.0047e9f0
add esp, 0xc
test al, al
jne 0x475a78
lea eax, [ebp - 0xdc]
push eax
call fcn.00478090
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x94], xmm0
cmp dword [eax], 0
je 0x475b1b
push str.encrypt_failed
push str._DLLPROTECT__::_DumpEventToFile____
push 0
call fcn.0047d8a0
add esp, 0xc
jmp 0x475b1b
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x5c]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push edi
call esi
test eax, eax
je 0x475aca
cmp dword [ebp - 0x14], 4
jne 0x475aca
cmp dword [ebp - 0x20], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x18]
lea eax, [ebp - 0x34]
cmovae eax, dword [ebp - 0x34]
push eax
push edi
call esi
test eax, eax
je 0x475aca
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x475aca
mov byte [ebp - 0x55], 1
jmp 0x475b1f
lea eax, [ebp - 0xdc]
push eax
call fcn.00478090
add esp, 4
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ebp - 0xa4], xmm0
movq xmm0, qword [eax + 0x20]
mov eax, dword [eax]
movq qword [ebp - 0x94], xmm0
cmp dword [eax], 0
je 0x475b1b
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
push eax
push str.WriteFile_failed_0x_x__dw:_0x_x_size:_0x_x
push str._DLLPROTECT__::_WriteStringToFile____
push 0
call fcn.0047d8a0
add esp, 0x18
mov byte [ebp - 0x55], 0
mov edx, dword [ebp - 0x40]
cmp edx, 0x10
jb 0x475b53
mov ecx, dword [ebp - 0x54]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x475b49
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475bd2
push edx
push ecx
call fcn.00450975
add esp, 8
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0xf
mov byte [ebp - 0x54], 0
cmp edx, 0x10
jb 0x475b95
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x475b8b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x475bd2
push edx
push ecx
call fcn.00450975
add esp, 8
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
call fcn.00472d10
mov al, byte [ebp - 0x55]
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