Function at 0x46dbcf
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4f1272
call fcn.004e6580
sub esp, 0x490
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push edi
mov ebx, ecx
lea ecx, [ebp - 0x4c]
push ecx
push esi
call dword [eax + 0xc]
and dword [ebp - 0x10], 0
mov eax, dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push ecx
push 0x504288
push esi
call dword [eax]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea edi, [ebx + 0x3c]
mov eax, dword [edi]
push eax
push ecx
call dword [edx + 0x7c]
mov eax, dword [ebp - 0x10]
push dword [ebx + 0x60]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x4c]
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
lea esi, [ebx + 0x18]
mov eax, dword [esi]
push eax
push ecx
call dword [edx + 0x34]
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x46dc6d
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jbe 0x46dc6d
lea esi, [ebx + 0x1c]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x3c]
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0xc]
mov eax, dword [edi]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
lea eax, [ebp - 0x49c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x49c]
push eax
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
call fcn.0049fc30
pop ecx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor esi, esi
mov dword [ebp - 0x30], esi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x30]
push edx
push eax
mov byte [ebp - 4], 2
call dword [ecx + 0x90]
cmp dword [ebx + 0x60], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
jbe 0x46de4e
mov dword [ebp - 0x20], esi
jmp 0x46dcfb
xor esi, esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
mov byte [ebp - 4], 3
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x34]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebp - 0x20]
lea esi, [eax + ecx + 0x5018]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x18]
add dword [ebp - 0x3c], eax
mov eax, dword [esi + 0x1c]
lea ecx, [ebp - 0x24]
adc dword [ebp - 0x38], eax
lea eax, [esi + 0x34]
push eax
call fcn.004021ce
add esi, 0x834
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.004021ce
mov esi, 0x4feb50
push esi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x294]
push eax
mov byte [ebp - 4], 5
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push esi
mov ecx, edi
call fcn.00402219
test al, al
jne 0x46dd95
push dword [ebp - 0x1c]
mov eax, dword [edi]
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
lea edx, [ebp - 0x2c]
push edx
push 0x5042a8
push eax
mov byte [ebp - 4], 6
call dword [ecx]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28]
call fcn.004021ce
mov eax, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push ecx
mov byte [ebp - 4], 7
call dword [edx + 0x24]
push dword [ebp - 0x28]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov byte [ebp - 4], 6
call esi
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0x40], 0
je 0x46de0c
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test eax, eax
mov byte [ebp - 4], 5
je 0x46de1d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 0x1c]
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
mov byte [ebp - 4], 2
je 0x46de38
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc dword [ebp - 0x34]
mov eax, dword [ebp - 0x34]
add dword [ebp - 0x20], 0xa38
cmp eax, dword [ebx + 0x60]
jb 0x46dcf9
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x5c]
push dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
push dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x74]
mov eax, dword [ebp - 0x10]
push dword [ebx + 0x6c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x10]
push dword [ebx + 0x70]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x54]
push 0x1000
lea ecx, [ebp - 0x8c]
call fcn.0046cb35
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 8
call fcn.00449e12
mov esi, dword [sym.imp.MSVCR71.dll_wcscpy]
mov edi, eax
lea eax, [ebp - 0x49c]
push eax
push edi
call esi
push dword [ebx + 8]
add edi, 0x800
push edi
call esi
mov eax, dword [ebx + 0x10c]
and dword [ebp - 0x44], 0
mov ecx, dword [eax]
add esp, 0x10
lea edx, [ebp - 0x44]
push edx
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x84]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push eax
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x70]
test eax, eax
jl 0x46defb
cmp dword [ebp - 0x44], 0
je 0x46defb
mov esi, dword [ebp + 8]
mov eax, dword [esi]
push 0xffffffffffffffff
push esi
call dword [eax + 0x7c]
jmp 0x46df09
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x7c]
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x44]
push 0x4feb50
mov ecx, edi
call fcn.00402219
test al, al
jne 0x46df2d
mov edi, dword [edi]
push edi
mov eax, dword [esi]
push esi
call dword [eax + 0xbc]
jmp 0x46dfdf
cmp dword [ebx + 0x60], 1
jne 0x46df42
mov ecx, dword [ebx + 0xb8]
add ecx, 0x504c
push ecx
jmp 0x46df1f
push dword [ebx + 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_8]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Trim_1]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov edi, eax
push str..torrent
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x46dfa7
push 0x4feb50
push edi
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
lea ecx, [ebp - 0x14]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::operator_class_ATL::CSimpleStringT_]
push eax
lea ecx, [ebp - 0x28]
call fcn.004021ce
mov eax, dword [eax]
mov ecx, dword [esi]
push eax
push esi
mov byte [ebp - 4], 0xa
call dword [ecx + 0xbc]
push dword [ebp - 0x28]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
xor edi, edi
cmp dword [ebx + 0xe0], edi
je 0x46e05a
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
mov byte [ebp - 4], 0xb
call dword [ecx + 0x98]
mov eax, dword [ebx + 0xe0]
xor esi, esi
cmp dword [eax], edi
jle 0x46e049
lea eax, [eax + edi + 4]
push eax
lea ecx, [ebp - 0x24]
call fcn.004021ce
mov eax, dword [ebp - 0x18]
push dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
mov byte [ebp - 4], 0xc
call dword [ecx + 0xc]
push dword [ebp - 0x24]
mov byte [ebp - 4], 0xb
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebx + 0xe0]
inc esi
add edi, 0x800
cmp esi, dword [eax]
jl 0x46e00c
xor edi, edi
mov eax, dword [ebp - 0x18]
cmp eax, edi
mov byte [ebp - 4], 8
je 0x46e05a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esi, [ebx + 0x78]
cmp word [esi], di
je 0x46e09b
cmp dword [ebx + 0x80], edi
jne 0x46e09b
mov ebx, dword [ebx + 0x108]
mov eax, dword [ebx]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x48]
movsd dword es:[edi], dword [esi]
push dword [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x150]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x84]
jmp 0x46e17b
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax]
lea eax, [eax*4 + 4]
push eax
lea ecx, [ebp - 0x6c]
call fcn.00449d9f
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0xd
call fcn.00449e12
mov esi, eax
mov eax, dword [ebx + 0xb8]
mov eax, dword [eax]
mov dword [esi], eax
shl eax, 2
push eax
call sub.MFC71U.DLL_SerializeElements
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xb8]
pop ecx
xor edx, edx
xor ecx, ecx
cmp dword [eax], edi
mov dword [ebp - 0x20], edi
jle 0x46e125
and dword [ebp - 0x28], ecx
lea edi, [esi + 4]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x28]
cmp dword [eax + edi + 0x5048], 0
je 0x46e10d
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x20]
add dword [ebp - 0x18], 4
mov dword [eax], ecx
jmp 0x46e114
mov eax, dword [ebp - 0x1c]
mov dword [eax + edx*4], ecx
inc edx
mov eax, dword [ebx + 0xb8]
inc ecx
add edi, 0xa38
cmp ecx, dword [eax]
jl 0x46e0f5
mov eax, edx
shl eax, 2
push eax
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x1c]
lea eax, [esi + eax*4 + 4]
push eax
call sub.MSVCR71.dll_memcpy
push dword [ebp - 0x1c]
call sub.MFC71U.DLL_operator_new
mov ebx, dword [ebx + 0x108]
mov eax, dword [ebx]
mov edi, esp
push dword [ebp - 0x48]
lea esi, [ebp - 0x64]
push dword [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
movsd dword es:[edi], dword [esi]
call dword [eax + 0x150]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x84]
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.00449de2
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x6c]
lea ecx, [ebp - 0x8c]
call fcn.0046cb7a
mov eax, dword [ebp - 0x30]
test eax, eax
mov byte [ebp - 4], 0
je 0x46e1a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test eax, eax
je 0x46e1b3
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
pop edi
xor eax, eax
pop esi
inc eax
mov dword fs:[0], ecx
pop ebx
leave
ret 4