Function at 0x418c45
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, 0x42fb09
call fcn.00428eb0
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 0x4193c8
cmp dword [eax + 0x14], ebx
je 0x4193c8
cmp dword [edi + 0x14], ebx
je 0x4193c8
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 0x418cea
push 0x4389c0
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 0x418d21
lea eax, [ebp + 0x68c]
lea ecx, [ebp + 0x6f8]
push ecx
push dword [ebp + 0x69c]
push eax
call fcn.00415f1b
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x418d47
mov eax, dword [eax + 4]
jmp 0x418d4a
add eax, 4
lea edx, [ebp + 0x6dc]
push edx
push ecx
push eax
call fcn.00415f1b
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 0x418d84
mov eax, dword [edi]
jmp 0x418d86
mov eax, edi
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.0041715a
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [esi + 0x18], ebx
jb 0x418da0
mov edi, dword [edi]
lea eax, [ebp + 0x6a4]
push edi
push eax
call fcn.00417009
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
cmp dword [ebp + 0x6b8], esi
jne 0x418dce
push str.download_interface.dll
lea ecx, [ebp + 0x6a4]
call dword [0x43436c]
mov eax, dword [ebp + 0x654]
cmp dword [ebp + 0x668], ebx
jae 0x418de2
lea eax, [ebp + 0x654]
push eax
lea ecx, [ebp]
call fcn.00418c1e
mov eax, dword [ebp + 0x6a8]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x6bc], ebx
jae 0x418e03
lea eax, [ebp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
jne 0x418e1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41912a
cmp dword [ebp - 0x1c], esi
je 0x418e34
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419125
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 0x418e16
xor edi, edi
mov byte [ebp - 0x16], 1
cmp dword [ebp - 0x1c], edi
je 0x418ef1
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419125
cmp byte [ebp + 0x85c], 0
mov esi, 0x439098
je 0x418ffd
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x418ffd
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 0x418f46
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
cmp eax, edi
je 0x418fe8
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x418f6d
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x6fc]
jae 0x418f85
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 0x418f99
mov eax, dword [ebx + 4]
jmp 0x418f9c
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 0x418feb
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418feb
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 0x41912a
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 0x419000
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], edi
jne 0x41907f
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x41901a
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov ecx, dword [ebp + 0x6fc]
mov dword [ebp - 0x10], eax
jae 0x419032
lea ecx, [ebp + 0x6fc]
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x419040
mov ebx, dword [ebx + 4]
jmp 0x419043
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 0x418e16
cmp dword [ebp - 0x1c], edi
je 0x41907f
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419125
push dword [ebp + 0x854]
push dword [ebp - 0x14]
call dword [ebp - 0x48]
push dword [ebp - 0x14]
call dword [ebp - 0x4c]
cmp eax, edi
jne 0x418e16
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x15], 1
cmp ebx, edi
je 0x4190b0
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419125
mov esi, dword [ebp - 0x54]
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
cmp esi, edi
je 0x4190e7
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 0x41912a
cmp dword [ebp + 0x208], 0xc
je 0x419113
cmp ebx, edi
je 0x419109
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x419125
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4190b3
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 0x41912a
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 0x4192ab
cmp dword [ebp - 0x34], esi
je 0x4192ab
cmp dword [ebp - 0x30], esi
je 0x4192ab
cmp byte [ebp - 0x15], 0
je 0x419163
push dword [ebp - 0x14]
call dword [ebp - 0x34]
cmp dword [ebp - 0x3c], esi
je 0x4191af
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 0x4191af
cmp dword [ebp - 0x10], esi
jae 0x4191af
lea eax, [ebp + 0x730]
push eax
lea ecx, [ebp + 0x6c0]
call dword [sym.imp.MSVCP90.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__::operator_char_const__]
push dword [ebp - 0x14]
call dword [ebp - 0x30]
test edi, edi
jne 0x419272
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x419272
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 [0x434298]
add esp, 0x20
test al, al
je 0x419252
cmp dword [ebp + 0x72c], 0x10
mov ecx, dword [ebp + 0x718]
jae 0x419235
lea ecx, [ebp + 0x718]
cmp dword [ebp + 0x684], 0x10
mov eax, dword [ebp + 0x670]
jae 0x41924a
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 0x4192ab
cmp dword [ebp + 0x6d4], 0
je 0x4192ab
cmp dword [ebp + 0x6d8], 0x10
mov eax, dword [ebp + 0x6c4]
jae 0x419299
lea eax, [ebp + 0x6c4]
push dword [ebp - 0x20]
push dword [ebp + 0x6d4]
push eax
call fcn.00415f03
add esp, 0xc
xor esi, esi
cmp edi, esi
je 0x41934c
cmp dword [ebp + 0x6d4], esi
je 0x41934c
cmp dword [ebp - 0x24], esi
je 0x41934c
cmp dword [ebp - 0x38], esi
je 0x41934c
cmp byte [ebp + 0x860], 0
jne 0x41934c
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 0x41930f
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x41933c
cmp dword [ebp + 0x72c], 0x10
mov eax, dword [ebp + 0x718]
jae 0x419332
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 0x41935a
cmp dword [ebp - 0x28], esi
je 0x41935a
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 0x4193cd
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.0042898c
add ebp, 0x838
leave
ret