Function at 0x418b6e
Capabilities:
Link many functions at runtime
Move file
Set current directory

Disassembly:
push ebp
sub esp, 0x834
lea ebp, [esp - 4]
mov eax, dword [0x445bbc]
xor eax, ebp
mov dword [ebp + 0x834], eax
push 0x50
mov eax, 0x42f939
call fcn.00428d8c
mov ecx, dword [ebp + 0x84c]
mov esi, dword [ebp + 0x840]
mov eax, dword [ebp + 0x844]
mov edi, dword [ebp + 0x848]
mov dword [ebp - 0x20], ecx
mov ecx, dword [ebp + 0x850]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x858]
xor ebx, ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], ecx
cmp dword [esi + 0x14], ebx
je 0x4192f1
cmp dword [eax + 0x14], ebx
je 0x4192f1
cmp dword [edi + 0x14], ebx
je 0x4192f1
push edi
lea ecx, [ebp + 0x688]
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov eax, dword [edi + 0x14]
dec eax
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP90.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_const]
cmp word [eax], 0x5c
je 0x418c13
push 0x4389d8
lea ecx, [ebp + 0x688]
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__]
lea ecx, [ebp + 0x6f8]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [ebp + 0x6dc]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [ebp + 0x68c]
push 8
pop ebx
mov byte [ebp - 4], 2
cmp dword [ebp + 0x6a0], ebx
jae 0x418c4a
lea eax, [ebp + 0x68c]
lea ecx, [ebp + 0x6f8]
push ecx
push dword [ebp + 0x69c]
push eax
call fcn.00415d6d
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x418c70
mov eax, dword [eax + 4]
jmp 0x418c73
add eax, 4
lea edx, [ebp + 0x6dc]
push edx
push ecx
push eax
call fcn.00415d6d
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x16], al
mov byte [ebp - 0x15], al
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], eax
lea edi, [esi + 4]
cmp dword [esi + 0x18], ebx
jb 0x418cad
mov eax, dword [edi]
jmp 0x418caf
mov eax, edi
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.00416fac
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [esi + 0x18], ebx
jb 0x418cc9
mov edi, dword [edi]
lea eax, [ebp + 0x6a4]
push edi
push eax
call fcn.00416e5b
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
cmp dword [ebp + 0x6b8], esi
jne 0x418cf7
push str.download_interface.dll
lea ecx, [ebp + 0x6a4]
call dword [0x43436c]
mov eax, dword [ebp + 0x654]
cmp dword [ebp + 0x668], ebx
jae 0x418d0b
lea eax, [ebp + 0x654]
push eax
lea ecx, [ebp]
call fcn.00418b47
mov eax, dword [ebp + 0x6a8]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x6bc], ebx
jae 0x418d2c
lea eax, [ebp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
jne 0x418d46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x419053
cmp dword [ebp - 0x1c], esi
je 0x418d5d
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41904e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.init
push edi
call esi
push str.uninit
push edi
mov ebx, eax
call esi
push str.create_new_task
push edi
mov dword [ebp - 0x28], eax
call esi
push str.delete_task
push edi
mov dword [ebp - 0x44], eax
call esi
push str.start_task
push edi
mov dword [ebp - 0x30], eax
call esi
push str.stop_task
push edi
mov dword [ebp - 0x4c], eax
call esi
push str.get_failure_detail
push edi
mov dword [ebp - 0x34], eax
call esi
push str.query_task_info
push edi
mov dword [ebp - 0x58], eax
call esi
push str.create_continued_task
push edi
mov dword [ebp - 0x5c], eax
call esi
push str.is_tempfile_exist
push edi
mov dword [ebp - 0x50], eax
call esi
push str.delete_tempfile
push edi
mov dword [ebp - 0x24], eax
call esi
push str.get_file_name
push edi
mov dword [ebp - 0x38], eax
call esi
push str.set_task_hub_type
push edi
mov dword [ebp - 0x3c], eax
call esi
push 0
mov dword [ebp - 0x48], eax
call ebx
test eax, eax
jne 0x418d3f
xor edi, edi
mov byte [ebp - 0x16], 1
cmp dword [ebp - 0x1c], edi
je 0x418e1a
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41904e
cmp byte [ebp + 0x85c], 0
mov esi, 0x43903c
je 0x418f26
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x418f26
lea eax, [ebp + 0x6dc]
push eax
lea eax, [ebp + 0x6f8]
push eax
lea eax, [ebp + 0x714]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
cmp dword [ebp + 0x72c], 0x10
mov eax, dword [ebp + 0x718]
mov byte [ebp - 4], 6
jae 0x418e6f
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
cmp eax, edi
je 0x418f11
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x418e96
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x6fc]
jae 0x418eae
lea eax, [ebp + 0x6fc]
mov ebx, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], 0x10
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x10], eax
jb 0x418ec2
mov eax, dword [ebx + 4]
jmp 0x418ec5
lea eax, [ebx + 4]
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0x6f0]
push dword [ebp - 0x40]
push dword [ebp + 0x70c]
push dword [ebp - 0x10]
push edi
push esi
push edi
push esi
push ecx
push eax
call dword [ebp - 0x50]
cmp dword [ebp - 0x1c], edi
je 0x418f14
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418f14
lea ecx, [ebp + 0x714]
mov edi, 0x3e3
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x419053
mov ebx, dword [ebp - 0x2c]
lea ecx, [ebp + 0x714]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x418f29
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], edi
jne 0x418fa8
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x418f43
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov ecx, dword [ebp + 0x6fc]
mov dword [ebp - 0x10], eax
jae 0x418f5b
lea ecx, [ebp + 0x6fc]
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x418f69
mov ebx, dword [ebx + 4]
jmp 0x418f6c
add ebx, 4
lea edx, [ebp - 0x14]
push edx
push dword [ebp + 0x6f0]
push dword [ebp - 0x10]
push dword [ebp + 0x70c]
push ecx
push edi
push esi
push edi
push esi
push eax
push ebx
call dword [ebp - 0x44]
cmp eax, edi
jne 0x418d3f
cmp dword [ebp - 0x1c], edi
je 0x418fa8
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41904e
push dword [ebp + 0x854]
push dword [ebp - 0x14]
call dword [ebp - 0x48]
push dword [ebp - 0x14]
call dword [ebp - 0x4c]
cmp eax, edi
jne 0x418d3f
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x15], 1
cmp ebx, edi
je 0x418fd9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41904e
mov esi, dword [ebp - 0x54]
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
cmp esi, edi
je 0x419010
mov eax, dword [ebp + 0x234]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x238]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x224]
mov dword [esi], eax
mov eax, dword [ebp + 0x228]
mov dword [esi + 4], eax
cmp dword [ebp + 0x208], 0xb
je 0x419053
cmp dword [ebp + 0x208], 0xc
je 0x41903c
cmp ebx, edi
je 0x419032
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x41904e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x418fdc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
call dword [ebp - 0x58]
mov edi, dword [ebp - 0x10]
jmp 0x419053
mov edi, 0x3e3
lea ecx, [ebp + 0x6c0]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor esi, esi
mov byte [ebp - 4], 7
cmp dword [ebp - 0x14], esi
je 0x4191d4
cmp dword [ebp - 0x34], esi
je 0x4191d4
cmp dword [ebp - 0x30], esi
je 0x4191d4
cmp byte [ebp - 0x15], 0
je 0x41908c
push dword [ebp - 0x14]
call dword [ebp - 0x34]
cmp dword [ebp - 0x3c], esi
je 0x4190d8
mov esi, 0x104
push esi
lea eax, [ebp + 0x730]
push 0
push eax
mov dword [ebp - 0x10], esi
call sub.MSVCR90.dll_memset
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x730]
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x3c]
test eax, eax
jne 0x4190d8
cmp dword [ebp - 0x10], esi
jae 0x4190d8
lea eax, [ebp + 0x730]
push eax
lea ecx, [ebp + 0x6c0]
call dword [0x434360]
push dword [ebp - 0x14]
call dword [ebp - 0x30]
test edi, edi
jne 0x41919b
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x41919b
mov esi, dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea eax, [ebp + 0x6c0]
push eax
lea eax, [ebp + 0x6f8]
push eax
lea eax, [ebp + 0x66c]
push eax
call esi
lea eax, [ebp + 0x6dc]
push eax
lea eax, [ebp + 0x6f8]
push eax
lea eax, [ebp + 0x714]
push eax
mov byte [ebp - 4], 8
call esi
lea eax, [ebp + 0x714]
push eax
lea eax, [ebp + 0x66c]
push eax
mov byte [ebp - 4], 9
call dword [0x43429c]
add esp, 0x20
test al, al
je 0x41917b
cmp dword [ebp + 0x72c], 0x10
mov ecx, dword [ebp + 0x718]
jae 0x41915e
lea ecx, [ebp + 0x718]
cmp dword [ebp + 0x684], 0x10
mov eax, dword [ebp + 0x670]
jae 0x419173
lea eax, [ebp + 0x670]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
lea ecx, [ebp + 0x714]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x66c]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], 0
jne 0x4191d4
cmp dword [ebp + 0x6d4], 0
je 0x4191d4
cmp dword [ebp + 0x6d8], 0x10
mov eax, dword [ebp + 0x6c4]
jae 0x4191c2
lea eax, [ebp + 0x6c4]
push dword [ebp - 0x20]
push dword [ebp + 0x6d4]
push eax
call fcn.00415d55
add esp, 0xc
xor esi, esi
cmp edi, esi
je 0x419275
cmp dword [ebp + 0x6d4], esi
je 0x419275
cmp dword [ebp - 0x24], esi
je 0x419275
cmp dword [ebp - 0x38], esi
je 0x419275
cmp byte [ebp + 0x860], 0
jne 0x419275
lea eax, [ebp + 0x6c0]
push eax
lea eax, [ebp + 0x6f8]
push eax
lea eax, [ebp + 0x714]
push eax
call dword [sym.imp.MSVCP90.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
add esp, 0xc
cmp dword [ebp + 0x72c], 0x10
mov eax, dword [ebp + 0x718]
mov byte [ebp - 4], 0xa
jae 0x419238
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x419265
cmp dword [ebp + 0x72c], 0x10
mov eax, dword [ebp + 0x718]
jae 0x41925b
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x38]
lea ecx, [ebp + 0x714]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp byte [ebp - 0x16], 0
je 0x419283
cmp dword [ebp - 0x28], esi
je 0x419283
call dword [ebp - 0x28]
lea ecx, [ebp + 0x6c0]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [ebp + 0x6a4]
mov byte [ebp - 4], 3
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, [ebp + 0x650]
mov byte [ebp - 4], 2
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, [ebp + 0x6dc]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [ebp + 0x6f8]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x688]
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, edi
jmp 0x4192f6
mov eax, 0x132b3a1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x834]
xor ecx, ebp
call fcn.00428868
add ebp, 0x838
leave
ret