Function at 0x4094f0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x44ebe2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
mov ebx, ecx
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x18], eax
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x1c], ebx
je 0x40986f
cmp esi, edi
jbe 0x40955d
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
mov ebp, esi
xor ebx, ebx
jmp 0x409570
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0xc], esi
jbe 0x409586
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
cmp edi, ebx
je 0x409590
cmp edi, eax
je 0x409596
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x40986f
cmp edi, ebx
jne 0x4095ec
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x4095b5
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x14], ebx
lea edi, [ebp + 4]
je 0x409844
lea ecx, [esp + 0x44]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov esi, 8
mov byte [esp + 0x6c], 1
cmp dword [edi + 0x14], esi
jb 0x4095f0
mov eax, dword [edi]
jmp 0x4095f2
mov eax, dword [edi]
jmp 0x4095aa
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409679
push str.path
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebp
lea ecx, [esp + 0x2c]
call dword [0x451350]
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x409625
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpIW]
mov esi, eax
push str..torrent
push esi
call edi
test eax, eax
jne 0x409652
mov ecx, dword [esp + 0x18]
push str.Torrent
add ecx, 0x1c
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push 0x457748
push esi
call edi
test eax, eax
jne 0x409766
mov ecx, dword [esp + 0x18]
push 0x457750
add ecx, 0x1c
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
jmp 0x409766
push ebp
call fcn.00409910
test eax, eax
je 0x40969c
push str.XLAppLink
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebp
lea ecx, [esp + 0x2c]
jmp 0x409760
cmp dword [edi + 0x14], esi
jb 0x4096a5
mov esi, dword [edi]
jmp 0x4096a7
mov esi, edi
push str.http:__
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.http:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4096cc
call fcn.004098a0
cmp eax, ebx
je 0x4096e2
push 0x45776c
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebp
lea ecx, [esp + 0x2c]
jmp 0x409760
push ebx
push 0x3a
mov ecx, ebp
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_of_wchar_t__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov esi, eax
mov eax, dword [edx]
cmp esi, eax
jne 0x409704
push eax
push 1
lea ecx, [esp + 0x4c]
jmp 0x40972e
cmp esi, 1
jbe 0x409735
lea eax, [esi - 1]
push eax
push 1
push ebp
lea ecx, [esp + 0x50]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_]
inc esi
cmp esi, dword [edi + 0x10]
jae 0x409735
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
push edx
push esi
lea ecx, [esp + 0x30]
push ebp
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_]
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x409744
lea eax, [esp + 0x48]
push str.StartType
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x409766
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
add ecx, 0x1c
call dword [0x451350]
mov eax, dword [esp + 0x58]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436761
mov edx, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x5c], 8
mov edi, eax
jae 0x409795
lea edx, [esp + 0x48]
mov ecx, edi
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ax, bx
jne 0x409797
mov eax, dword [esp + 0x3c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00436761
mov edx, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0x40], 8
mov esi, eax
jae 0x4097d7
lea edx, [esp + 0x2c]
mov ecx, esi
lea esp, [esp]
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ax, bx
jne 0x4097e0
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x38]
cmp eax, ebx
je 0x409824
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x409824
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x38]
push esi
push edi
add eax, 4
mov eax, dword [eax]
push 0x1402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x40986b
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x40985f
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
add ebp, 0x1c
jmp 0x409570
mov eax, dword [eax]
jmp 0x409854
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.00436772
add esp, 0x5c
ret 4