Function at 0x45d370
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c44be
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x4f6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x48], edx
mov edi, ecx
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], 0
call fcn.0040b040
mov dword [ebp - 0x44], eax
test eax, eax
je 0x45d75a
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, dword [ebp - 0x44]
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x64], esi
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x14], 7
jbe 0x45d3e9
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x60], 0x4d81f4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
cmp eax, 0xffffffff
jne 0x45d488
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 0x54], 1
mov byte [ebp - 4], 2
push 0xffffffffffffffff
mov dword [ebp - 0x60], 0x4d81f4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45d73d
mov edi, dword [esi]
push esi
mov eax, dword [edi]
mov esi, dword [eax + 4]
jmp 0x45d72e
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 5
mov ecx, 0x100
mov edx, dword [ebp - 0x18]
sub ecx, edx
mov eax, dword [ebp - 0x14]
sub eax, edx
mov dword [ebp - 0x48], ecx
cmp ecx, eax
ja 0x45d4f2
cmp dword [ebp - 0x14], 0xf
lea edi, [ebp - 0x28]
push ecx
cmova edi, dword [ebp - 0x28]
add edi, edx
mov dword [ebp - 0x18], 0x100
push 0
push edi
call fcn.004883f0
mov eax, dword [ebp - 0x48]
add esp, 0xc
mov byte [edi + eax], 0
mov edi, dword [ebp - 0x4c]
jmp 0x45d501
push 0
push ecx
push dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00423120
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x58]
push 0
push ecx
lea eax, [ebp - 0x28]
mov dword [ebp - 0x58], 0
cmova eax, dword [ebp - 0x28]
push 0x100
push eax
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45d5bf
xorps xmm0, xmm0
mov dword [ebp - 0x54], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x45d588
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45d57e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d764
push ecx
push edx
call fcn.00486428
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0x4d81f4
test eax, eax
je 0x45d5ba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
jmp 0x45d460
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x50]
push 0
push ecx
push 0
push str.application_octet_stream
push dword [ebp - 0x58]
lea eax, [ebp - 0x28]
mov dword [ebp - 0x50], 0
cmova eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [sym.imp.urlmon.dll_FindMimeFromData]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
xor ecx, ecx
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], cx
mov byte [ebp - 4], 7
test eax, eax
js 0x45d653
mov edx, dword [ebp - 0x50]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x48], eax
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45d630
sub ecx, dword [ebp - 0x48]
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.004086d0
push dword [ebp - 0x50]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xorps xmm0, xmm0
mov dword [ebp - 0x54], 1
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
xor eax, eax
movups xmm0, xmmword [ebp - 0x40]
mov dword [edi + 0x14], 0
mov word [ebp - 0x40], ax
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x30]
movq qword [edi + 0x10], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov byte [ebp - 4], 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x45d6dd
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x45d6d3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x45d764
push ecx
push edx
call fcn.00486428
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x60], 0x4d81f4
test eax, eax
je 0x45d70f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x5c], 0
mov dword [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45d73d
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x4c83a0]
mov ecx, edi
call esi
mov edi, dword [ebp - 0x4c]
mov eax, edi
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.0048641a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040b700
call fcn.0048b78f
int3