Function at 0x5e4a80
Capabilities:
Get file size
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x654710
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, ecx
cmp edi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], esi
je 0x5e504c
call fcn.005e4600
cmp dword [0x6fe004], esi
jne 0x5e4af6
mov eax, dword [0x6fe000]
cmp eax, esi
jne 0x5e4ae5
push str.Urlmon.dll
call fcn.0044abc0
add esp, 4
cmp eax, esi
mov dword [0x6fe000], eax
je 0x5e4af6
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x6fe004], eax
mov eax, dword [0x6fe004]
mov byte [ebp - 0x11], 1
cmp eax, esi
mov byte [ebp - 0x12], 0
jne 0x5e4b13
cmp dword [0x6fdff8], esi
je 0x5e5008
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x24], edx
je 0x5e5008
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x130]
push esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x130]
push eax
push 0x100
push ecx
push edx
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x5e4ff7
mov ecx, dword [ebp - 0x1c]
cmp ecx, esi
jbe 0x5e4ff7
mov eax, dword [0x6fe004]
cmp eax, esi
je 0x5e4cac
lea edx, [ebp - 0x18]
push esi
push edx
push esi
push esi
push ecx
lea ecx, [ebp - 0x130]
mov byte [ebp - 4], 1
push ecx
push esi
push esi
mov dword [ebp - 0x18], esi
call eax
cmp eax, esi
jne 0x5e4ca3
mov eax, dword [ebp - 0x18]
cmp eax, esi
je 0x5e4ca3
add ebx, 0xcc
push eax
mov ecx, ebx
mov byte [ebp - 0x11], 0
call fcn.00622f3a
mov edx, dword [ebp - 0x18]
push edx
call dword [0x6fc3ec]
mov eax, dword [ebx]
push str.application_octet_stream
push eax
mov dword [ebp - 4], 1
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4c12
mov eax, dword [ebx]
push 0x6cc3d8
push eax
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4c12
mov eax, dword [ebx]
push str.text_html
push eax
call fcn.0060a000
add esp, 8
test eax, eax
jne 0x5e4c1e
cmp dword [0x6fdff8], esi
je 0x5e4c1e
mov byte [ebp - 0x11], 1
mov eax, dword [ebx]
push str.application_octet_stream
push eax
call fcn.0060a000
add esp, 8
test eax, eax
jne 0x5e4ca3
cmp dword [ebp - 0x1c], 7
jb 0x5e4ca3
mov ecx, 3
mov edi, 0x6cc9c8
lea esi, [ebp - 0x130]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x5e4ca3
mov cl, byte [ebp - 0x12c]
mov al, 1
test cl, 0x80
je 0x5e4c5d
xor al, al
test cl, 0x40
je 0x5e4c64
xor al, al
test cl, 0x20
je 0x5e4c6b
xor al, al
test cl, 0x10
je 0x5e4c72
xor al, al
test cl, 2
je 0x5e4c79
xor al, al
mov cl, byte [ebp - 0x12d]
test cl, cl
je 0x5e4ca3
cmp cl, 2
ja 0x5e4ca3
test al, al
je 0x5e4ca3
push str.video_x_flv
push 0x6c910c
push ebx
call fcn.0061fae1
add esp, 0xc
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
xor esi, esi
cmp dword [0x6fdff8], esi
je 0x5e4ff7
mov al, byte [ebp - 0x11]
test al, al
je 0x5e4ff7
mov ebx, dword [ebp - 0x24]
mov ecx, 0xa8
xor eax, eax
lea edi, [ebp - 0x3d0]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
xor edi, edi
push ecx
push ebx
mov byte [ebp - 0x3d0], 1
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5e4d01
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5e4dac
mov edx, dword [ebp - 0x2c]
push 1
push 0
push 0
push edx
call fcn.0060c730
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x5e4dac
jg 0x5e4d29
cmp eax, 0x100
jbe 0x5e4dac
test edx, edx
jg 0x5e4d41
jl 0x5e4d36
cmp eax, 0x1388
jae 0x5e4d41
mov dword [ebp - 0x28], eax
jmp 0x5e4d48
mov dword [ebp - 0x28], 0x1388
mov edx, dword [ebp - 0x28]
push edx
call fcn.00622acb
mov esi, eax
add esp, 4
test esi, esi
je 0x5e4dac
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x1c]
push 0
push eax
push ecx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5e4da1
mov eax, dword [ebp - 0x1c]
test eax, eax
jbe 0x5e4da1
lea edx, [ebp - 0x3d0]
push edx
push 0
push eax
push esi
call dword [0x6fdff8]
mov edi, eax
mov dword [ebp - 0x18], edi
push esi
call fcn.00622af4
add esp, 4
jmp 0x5e4dcb
mov ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x3d0]
push eax
push 0
lea edx, [ebp - 0x130]
push ecx
push edx
call dword [0x6fdff8]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x5e4dd8
cmp edi, 0xffffffff
je 0x5e4dd8
mov byte [ebp - 0x11], 0
cmp edi, 3
jne 0x5e4e15
mov ebx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
xor esi, esi
mov eax, dword [ebx + 0x128]
mov edx, dword [ebx + 0x12c]
cmp eax, ecx
jne 0x5e4e03
cmp edx, esi
jne 0x5e4e03
test edx, edx
jg 0x5e4e0c
jl 0x5e4e03
test eax, eax
ja 0x5e4e0c
cmp dword [ebp - 0x28], 0x1388
jb 0x5e4e24
mov dword [ebp - 0x18], 1
jmp 0x5e4e40
cmp edi, 1
je 0x5e4e3d
cmp edi, 2
je 0x5e4e3d
jmp 0x5e4ff7
push 0x6fc418
lea ecx, [ebx + 0xcc]
mov byte [ebp - 0x12], 1
call fcn.00622f13
jmp 0x5e4ff7
mov ebx, dword [ebp - 0x20]
lea edi, [ebp - 0x2a3]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e4f7f
lea eax, [ebp - 0x2a3]
push 0x6f0728
push eax
call fcn.0060a000
add esp, 8
test eax, eax
jne 0x5e4e7f
lea ecx, [ebx + 0xcc]
push 0x6cc3d8
push ecx
jmp 0x5e4f31
lea edx, [ebp - 0x2a3]
push 0x6cd0a8
push edx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4f25
lea eax, [ebp - 0x2a3]
push str.html
push eax
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4f25
mov esi, dword [ebx + 0xa4]
cmp byte [esi], 0x2e
jne 0x5e4ebf
inc esi
mov eax, dword [0x6fdffc]
test eax, eax
je 0x5e4f08
lea ecx, [ebp - 0x2a3]
push ecx
push esi
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4f08
push 0
lea edx, [ebp - 0x307]
push esi
push edx
call dword [0x6fdffc]
cmp eax, 1
jne 0x5e4f08
push esi
lea eax, [ebx + 0xcc]
push str.idmcheckedtype__s
push eax
call fcn.0061fae1
add esp, 0xc
jmp 0x5e4f39
lea ecx, [ebp - 0x2a3]
lea edx, [ebx + 0xcc]
push ecx
push str.idmcheckedtype__s
push edx
call fcn.0061fae1
add esp, 0xc
jmp 0x5e4f39
lea eax, [ebx + 0xcc]
push str.text_html
push eax
call fcn.0061fae1
add esp, 8
cmp dword [ebp - 0x18], 2
jne 0x5e4ff7
mov eax, dword [ebx + 0x14c]
test ah, 1
je 0x5e4ff7
mov edx, dword [ebx + 0x43c]
mov eax, dword [ebp - 0x270]
lea ecx, [ebp - 0x18]
push 4
push ecx
push 4
push 0
push str.exLenToSkip
push edx
mov dword [ebx + 0x338], eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x5e4ff7
lea edi, [ebp - 0x307]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e4ff7
lea eax, [ebp - 0x307]
push str.application_octet_stream
push eax
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4ff7
lea ecx, [ebp - 0x307]
push 0x6cc3d8
push ecx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4ff7
lea edx, [ebp - 0x307]
push str.text_html
push edx
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e4ff7
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x307]
push eax
add ecx, 0xcc
push 0x6c910c
push ecx
call fcn.0061fae1
add esp, 0xc
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
test al, al
je 0x5e505f
lea ecx, [ebp - 0x24]
call fcn.005e8160
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.005e82d0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0
mov dword [ecx], eax
lea ecx, [ebp - 0x24]
call fcn.005e8190
mov al, byte [ebp - 0x12]
test al, al
jne 0x5e504c
mov ebx, dword [ebp - 0x20]
mov byte [ebx + 0x306], 1
mov dword [ebx + 0xb0], 3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
mov al, byte [ebp - 0x12]
test al, al
jne 0x5e504c
mov ebx, dword [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xcc]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e503b
push str.text_html
push edx
call fcn.0060a000
mov edx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
jne 0x5e503b
mov eax, dword [ebx + 0x3c]
test eax, eax
jne 0x5e50a7
test byte [ebx + 0x14c], 8
je 0x5e503b
mov esi, dword [ebx + 0xa4]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5e503b
cmp byte [esi], 0x2e
jne 0x5e50c1
inc esi
push 0xff
lea eax, [ebp - 0x4d0]
push esi
push eax
call fcn.00609f00
lea ecx, [ebp - 0x4d0]
mov byte [ebp - 0x3d1], 0
push ecx
call fcn.0060cf4d
mov edx, dword [0x6f7b78]
add esp, 0x10
mov dword [ebp + 8], edx
lea eax, [ebp - 0x4d0]
lea ecx, [ebp + 8]
push eax
push str.__s
push ecx
mov byte [ebp - 4], 6
call fcn.0061fae1
add esp, 0xc
push 0x6f0728
push esi
call fcn.0060a000
add esp, 8
test eax, eax
je 0x5e5153
mov edx, dword [ebp + 8]
push edx
push str._3GP_7Z_AAC_ACE_AIF_ARJ_ASF_AVI_BIN_BZ2_DOC_DOCX_EXE_FLV_GZ_GZIP_IMG_ISO_LZH_M4A_M4V_MKV_MOV_MP3_MP4_MPA_MPE_MPEG_MPG_MSI_MSU_OGG_OGV_PDF_PLJ_PPS_PPT_QT_R0_R1_RA_RAR_RM_RMVB_SEA_SIT_SITX_TAR_TIF_TIFF_WAV_WEBM_WMA_WMV_Z_ZIP
call fcn.00609cc0
add esp, 8
test eax, eax
je 0x5e5153
mov eax, dword [ebx + 0xcc]
push 0x6cc3d8
push eax
call fcn.0060a000
mov ecx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call fcn.00622d8a
jmp 0x5e503b