Function at 0x695230
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x762dc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
call fcn.006954f0
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x10c], eax
cmp eax, 0xffffffff
jne 0x6952c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x6952b1
sub eax, 2
je 0x69529a
dec eax
jne 0x6952c8
pop edi
mov eax, 0xa
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 8
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret 0xc
pop edi
mov eax, 7
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esi + 0x110]
sub ecx, edi
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx + edi - 2], ax
test ax, ax
jne 0x6952d0
push ebx
push 0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
push eax
push 0x84
lea edi, [esi + 0x88]
push edi
push dword [esi + 0x10c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push dword [esi + 0x10c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [edi], 0xdedaeac
mov ebx, eax
je 0x69533d
mov ecx, esi
call fcn.006954f0
pop ebx
pop edi
mov eax, 9
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret 0xc
movdqu xmm0, xmmword [esi + 0x8c]
mov ecx, dword [ebp + 0xc]
movdqu xmmword [esi + 8], xmm0
movdqu xmm0, xmmword [esi + 0x9c]
movdqu xmmword [esi + 0x18], xmm0
movdqu xmm0, xmmword [esi + 0xcc]
movdqu xmmword [esi + 0x48], xmm0
movdqu xmm0, xmmword [esi + 0xdc]
movdqu xmmword [esi + 0x58], xmm0
test ecx, ecx
je 0x6953a7
mov eax, dword [ecx]
xor dword [esi + 8], eax
mov eax, dword [ecx + 4]
xor dword [esi + 0xc], eax
mov eax, dword [ecx + 8]
xor dword [esi + 0x10], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0x14], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x18], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x20], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x24], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6953dd
mov eax, dword [ecx]
xor dword [esi + 0x48], eax
mov eax, dword [ecx + 4]
xor dword [esi + 0x4c], eax
mov eax, dword [ecx + 8]
xor dword [esi + 0x50], eax
mov eax, dword [ecx + 0xc]
xor dword [esi + 0x54], eax
mov eax, dword [ecx + 0x10]
xor dword [esi + 0x58], eax
mov eax, dword [ecx + 0x14]
xor dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x18]
xor dword [esi + 0x60], eax
mov eax, dword [ecx + 0x1c]
xor dword [esi + 0x64], eax
mov edi, 0x84
cmp ebx, edi
jbe 0x69547b
lea ebx, [ebx]
push 0
push 0
push 0
push edi
push dword [esi + 0x10c]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x10c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0
lea edi, [ecx + eax]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov ecx, esi
mov eax, dword [ebp - 0x14]
movdqu xmm0, xmmword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x5c], eax
movzx eax, byte [0x819bdf]
push eax
lea eax, [ebp - 0x5c]
push eax
movdqu xmmword [ebp - 0x54], xmm0
lea eax, [ebp - 0x3c]
movq xmm0, qword [ebp - 0x24]
push 0
push eax
movq qword [ebp - 0x44], xmm0
call fcn.00694630
cmp edi, ebx
jb 0x6953f0
mov ecx, dword [ebp - 4]
xor eax, eax
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0065b5b4
mov esp, ebp
pop ebp
ret 0xc