Function at 0x403fe0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x404abc
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x28]
push ebx
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404096
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
mov dword [esp + 0x14], edi
jne 0x40405a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
je 0x40408a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4040ae
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
lea ecx, [ebp + 1]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebp
mov edi, eax
mov edx, ecx
add esp, 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebx
call esi
mov eax, dword [esp + 0x38]
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3c
push eax
mov byte [eax + ebp + 1], 0
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x4043f2
mov ebp, dword [sym.imp.MSVCRT.dll__strnicmp]
push 3
push 0x407888
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4041aa
push 0x3e
push esi
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4043f2
add esi, 3
push str.href
push esi
mov byte [ebx], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x404157
lea esi, [ebx + 1]
jmp 0x4043e0
mov cl, byte [eax + 5]
lea esi, [eax + 5]
cmp cl, 0x22
jne 0x404188
lea esi, [eax + 6]
push 0x22
push esi
call edi
add esp, 8
test eax, eax
jne 0x404179
lea esi, [ebx + 1]
jmp 0x4043e0
push esi
mov byte [eax], 0
call dword [sym.imp.SHLWAPI.dll_PathRemoveBlanksA]
jmp 0x404231
cmp byte [esi], 0x20
jne 0x404195
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40418d
push 0x20
push esi
call edi
add esp, 8
test eax, eax
je 0x404231
jmp 0x40422e
push 5
push str._img
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4043df
push 0x3e
push esi
call edi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4043f2
add esi, 3
push str.src
push esi
mov byte [ebx], 0
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x4041ef
lea esi, [ebx + 1]
jmp 0x4043e0
mov cl, byte [eax + 4]
lea esi, [eax + 4]
cmp cl, 0x22
jne 0x404215
lea esi, [eax + 5]
push 0x22
push esi
call edi
add esp, 8
test eax, eax
jne 0x404179
lea esi, [ebx + 1]
jmp 0x4043e0
cmp byte [esi], 0x20
jne 0x404222
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
je 0x40421a
push 0x20
push esi
call edi
add esp, 8
test eax, eax
je 0x404231
mov byte [eax], 0
push 0
push esi
call dword [sym.imp.SHLWAPI.dll_UrlIsA]
test eax, eax
je 0x4043da
push 7
push str.http:__
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x40428a
push 6
push str.ftp:__
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x40428a
push 6
push str.mms:__
push esi
call ebp
add esp, 0xc
test eax, eax
je 0x40428a
push 7
push str.rtsp:__
push esi
call ebp
add esp, 0xc
test eax, eax
jne 0x4043da
xor eax, eax
mov edi, esi
or ecx, 0xffffffff
mov dl, byte [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov byte [esp + 0x20], dl
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCP60.dll_private:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Grow_unsigned_int__bool_]
test al, al
je 0x4042dd
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
mov edi, dword [esp + 0x3c]
xor ebp, ebp
mov dword [esp + 0x30], ebp
cmp dword [edi + 0x2c], ebp
je 0x404368
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi + 0x18]
cmp esi, ecx
je 0x404368
lea eax, [esi + 0x10]
cmp eax, ecx
jne 0x40432c
mov ecx, esi
mov dword [edi + 0x1c], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
cmp ecx, ebp
mov byte [esp + 0x30], 2
je 0x40431e
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, edi
mov byte [esp + 0x30], 0
call fcn.00404420
jmp 0x404394
mov dword [esp + 0x14], esi
mov dword [edi + 0x1c], eax
mov dword [esp + 0x10], esi
cmp esi, ebp
mov byte [esp + 0x30], 3
je 0x404394
mov al, byte [esp + 0x18]
push ebp
mov ecx, esi
mov byte [esi], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
lea eax, [esp + 0x18]
mov edx, dword [ecx]
mov ecx, esi
push edx
push ebp
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
jmp 0x404394
mov ecx, edi
call fcn.00404420
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
lea edx, [ecx + 0x10]
mov dword [edi + 0x1c], edx
cmp ecx, ebp
mov byte [esp + 0x30], 1
je 0x404394
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edx, dword [edi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebp
mov dword [edi + 0x2c], edx
mov dword [esp + 0x30], 0xffffffff
je 0x4043c8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x4043bf
cmp al, 0xff
je 0x4043bf
dec al
mov byte [ecx], al
jmp 0x4043c8
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
lea esi, [ebx + 1]
jmp 0x4043e0
inc esi
push 0x3c
push esi
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40410c
mov ecx, dword [esp + 0x38]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
add esp, 4
mov eax, dword [edx + 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret