Function at 0x52d920
Capabilities:
Get file size
Query or enumerate registry value
Read file on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c8
mov eax, dword [0x63f57c]
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
cmp eax, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], esi
jne 0x52da04
mov eax, dword [0x63f578]
cmp eax, esi
jne 0x52d9de
mov edx, dword [0x63e518]
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x130]
push eax
push ecx
push esi
push esi
push str.ExePath
push edx
mov dword [ebp - 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52d9d5
lea eax, [ebp - 0x130]
push 0x5c
push eax
call fcn.0054dff0
add esp, 8
cmp eax, esi
je 0x52d9d5
lea ecx, [ebp - 0x130]
lea edx, [ebp - 0x234]
push ecx
push str._sidmftype.dll
push edx
mov byte [eax], 0
call fcn.0054ea2a
add esp, 0xc
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x63f578], eax
jmp 0x52d9da
mov eax, dword [0x63f578]
cmp eax, esi
je 0x52da04
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IDMFileType
push eax
call edi
mov ecx, dword [0x63f578]
push str.IDMExtensionForMimeType
push ecx
mov dword [0x63f57c], eax
call edi
mov dword [0x63f574], eax
cmp dword [0x63f584], esi
jne 0x52da3a
mov eax, dword [0x63f580]
cmp eax, esi
jne 0x52da29
push str.Urlmon.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, esi
mov dword [0x63f580], eax
je 0x52da3a
push str.FindMimeFromData
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x63f584], eax
mov eax, dword [0x63f584]
mov byte [ebp - 0x11], 1
cmp eax, esi
mov byte [ebp - 0x12], 0
jne 0x52da57
cmp dword [0x63f57c], esi
je 0x52dec5
mov edx, dword [ebp + 8]
push esi
push esi
push 3
push esi
push 3
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, eax
cmp edx, 0xffffffff
mov dword [ebp - 0x20], edx
je 0x52dec5
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 - 0x24]
lea ecx, [ebp - 0x130]
push eax
push 0x100
push ecx
push edx
mov dword [ebp - 0x28], 0x100
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x52deb4
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
jbe 0x52deb4
mov eax, dword [0x63f584]
cmp eax, esi
je 0x52dbf3
lea edx, [ebp - 0x1c]
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 - 0x1c], esi
call eax
cmp eax, esi
jne 0x52dbea
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x52dbea
add ebx, 0xcc
push eax
mov ecx, ebx
mov byte [ebp - 0x11], 0
call fcn.0056a2b0
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebx]
push str.application_octet_stream
push eax
mov dword [ebp - 4], 1
call fcn.00556b60
add esp, 8
test eax, eax
je 0x52db59
mov eax, dword [ebx]
push str.text_plain
push eax
call fcn.00556b60
add esp, 8
test eax, eax
je 0x52db59
mov eax, dword [ebx]
push str.text_html
push eax
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x52db65
cmp dword [0x63f57c], esi
je 0x52db65
mov byte [ebp - 0x11], 1
mov eax, dword [ebx]
push str.application_octet_stream
push eax
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x52dbea
cmp dword [ebp - 0x24], 7
jb 0x52dbea
mov ecx, 3
mov edi, 0x61bc14
lea esi, [ebp - 0x130]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x52dbea
mov cl, byte [ebp - 0x12c]
mov al, 1
test cl, 0x80
je 0x52dba4
xor al, al
test cl, 0x40
je 0x52dbab
xor al, al
test cl, 0x20
je 0x52dbb2
xor al, al
test cl, 0x10
je 0x52dbb9
xor al, al
test cl, 2
je 0x52dbc0
xor al, al
mov cl, byte [ebp - 0x12d]
test cl, cl
je 0x52dbea
cmp cl, 2
ja 0x52dbea
test al, al
je 0x52dbea
push str.video_x_flv
push 0x615e9c
push ebx
call fcn.00562ecb
add esp, 0xc
mov byte [ebp - 0x11], 0
mov dword [ebp - 4], 0
xor esi, esi
cmp dword [0x63f57c], esi
je 0x52deb4
mov al, byte [ebp - 0x11]
test al, al
je 0x52deb4
mov ebx, dword [ebp - 0x20]
mov ecx, 0xa8
xor eax, eax
lea edi, [ebp - 0x4d4]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x4d4], 1
push ecx
push ebx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x52dc46
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x52dcf3
mov edx, dword [ebp - 0x2c]
push 1
push 0
push 0
push edx
call fcn.00550840
xor ecx, ecx
add eax, esi
adc edx, ecx
js 0x52dcf3
jg 0x52dc6e
cmp eax, 0x100
jbe 0x52dcf3
test edx, edx
jg 0x52dc85
jl 0x52dc7b
cmp eax, 0x1388
jae 0x52dc85
mov edi, eax
jmp 0x52dc8a
mov edi, 0x1388
push edi
call fcn.0056649c
mov esi, eax
add esp, 4
test esi, esi
je 0x52dcf6
push 0
push 0
push 0
push ebx
mov dword [ebp - 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [ebp - 0x24]
push 0
push edx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x52dce5
mov eax, dword [ebp - 0x24]
test eax, eax
jbe 0x52dce5
lea ecx, [ebp - 0x4d4]
push ecx
push 0
push eax
push esi
call dword [0x63f57c]
push esi
mov ebx, eax
call fcn.005664c5
add esp, 4
jmp 0x52dd15
mov ebx, dword [ebp - 0x1c]
push esi
call fcn.005664c5
add esp, 4
jmp 0x52dd15
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x4d4]
push edx
push 0
lea ecx, [ebp - 0x130]
push eax
push ecx
call dword [0x63f57c]
mov dword [ebp - 0x1c], eax
mov ebx, eax
test ebx, ebx
je 0x52dd22
cmp ebx, 0xffffffff
je 0x52dd22
mov byte [ebp - 0x11], 0
cmp ebx, 3
jne 0x52dd8f
mov esi, dword [ebp - 0x18]
xor edx, edx
mov eax, dword [esi + 0x118]
mov ecx, dword [esi + 0x11c]
cmp eax, edi
jne 0x52dd4a
cmp ecx, edx
jne 0x52dd4a
test ecx, ecx
jg 0x52dd52
jl 0x52dd4a
test eax, eax
ja 0x52dd52
cmp edi, 0x1388
jb 0x52dd9e
mov ebx, 1
lea edi, [ebp - 0x3a7]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52deb4
lea edx, [ebp - 0x3a7]
push 0x632634
push edx
call fcn.00556b60
add esp, 8
test eax, eax
jne 0x52ddb7
push str.text_plain
jmp 0x52de65
cmp ebx, 1
je 0x52dd57
cmp ebx, 2
je 0x52dd57
jmp 0x52deb4
push 0x63e040
lea ecx, [esi + 0xcc]
mov byte [ebp - 0x12], 1
call fcn.0056a289
jmp 0x52deb4
lea ecx, [ebp - 0x3a7]
push 0x618750
push ecx
call fcn.00556b60
add esp, 8
test eax, eax
je 0x52de60
lea edx, [ebp - 0x3a7]
push str.html
push edx
call fcn.00556b60
add esp, 8
test eax, eax
je 0x52de60
mov edi, dword [ebp - 0x18]
mov esi, dword [edi + 0xa4]
cmp byte [esi], 0x2e
jne 0x52ddfa
inc esi
mov eax, dword [0x63f574]
test eax, eax
je 0x52de43
lea eax, [ebp - 0x3a7]
push eax
push esi
call fcn.00556b60
add esp, 8
test eax, eax
je 0x52de43
push 0
lea ecx, [ebp - 0x40b]
push esi
push ecx
call dword [0x63f574]
cmp eax, 1
jne 0x52de43
push esi
add edi, 0xcc
push str.idmcheckedtype__s
push edi
call fcn.00562ecb
add esp, 0xc
jmp 0x52de76
lea edx, [ebp - 0x3a7]
add edi, 0xcc
push edx
push str.idmcheckedtype__s
push edi
call fcn.00562ecb
add esp, 0xc
jmp 0x52de76
push str.text_html
mov eax, dword [ebp - 0x18]
add eax, 0xcc
push eax
call fcn.00562ecb
add esp, 8
cmp ebx, 2
jne 0x52deb4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x13c]
test ah, 1
je 0x52deb4
mov eax, dword [ebp - 0x374]
lea edx, [ebp - 0x28]
push 4
push edx
mov dword [ecx + 0x2b8], eax
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x330]
push 4
push 0
push str.exLenToSkip
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x11]
test al, al
je 0x52df22
lea ecx, [ebp - 0x20]
call fcn.005302b0
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edx
mov byte [ebp - 4], 5
call fcn.00530410
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 0
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
call fcn.005302e0
mov al, byte [ebp - 0x12]
test al, al
jne 0x52df09
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x29e], 1
mov dword [eax + 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 0x52df09
mov esi, dword [ebp - 0x18]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi + 0xcc]
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x52def5
push str.text_html
push edx
call fcn.00556b60
mov edx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [edx], eax
jne 0x52def5
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x52df6a
test byte [esi + 0x13c], 8
je 0x52def5
mov eax, dword [ebp - 0x18]
mov ebx, dword [eax + 0xa4]
cmp byte [ebx], 0x2e
jne 0x52df79
inc ebx
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x230]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x230]
push ecx
call fcn.00550dd4
push 0x632634
push ebx
call fcn.00556b60
add esp, 0xc
test eax, eax
je 0x52def5
lea edx, [ebp - 0x230]
push edx
push str.3GP_7Z_A0_A1_AAC_ACE_AIF_ARJ_ASF_AVI_BIN_BZ2_EXE_GZ_GZIP_IMG_ISO_LZH_M4A_M4V_MOV_MP3_MP4_MPA_MPE_MPEG_MPG_MSI_MSU_OGG_PDF_PLJ_PPS_PPT_QT_R0_R1_RA_RAR_RM_SEA_SIT_SITX_TAR_TIF_TIFF_WAV_WMA_WMV_Z_ZIP
call fcn.0054e0f0
add esp, 8
test eax, eax
je 0x52def5
mov eax, dword [ebp - 0x18]
push str.text_plain
mov eax, dword [eax + 0xcc]
push eax
call fcn.00556b60
mov ecx, dword [ebp + 0xc]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
jmp 0x52def5