Function at 0x41899b
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, 0x42f7c9
call fcn.00428b30
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 0x41911e
cmp dword [eax + 0x14], ebx
je 0x41911e
cmp dword [edi + 0x14], ebx
je 0x41911e
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 0x418a40
push 0x4389c8
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 0x418a77
lea eax, [ebp + 0x68c]
lea ecx, [ebp + 0x6f8]
push ecx
push dword [ebp + 0x69c]
push eax
call fcn.00415c34
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x14]
add esp, 0xc
cmp dword [eax + 0x18], ebx
jb 0x418a9d
mov eax, dword [eax + 4]
jmp 0x418aa0
add eax, 4
lea edx, [ebp + 0x6dc]
push edx
push ecx
push eax
call fcn.00415c34
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 0x418ada
mov eax, dword [edi]
jmp 0x418adc
mov eax, edi
push eax
lea eax, [ebp + 0x650]
push eax
call fcn.00416e72
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [esi + 0x18], ebx
jb 0x418af6
mov edi, dword [edi]
lea eax, [ebp + 0x6a4]
push edi
push eax
call fcn.00416d21
pop ecx
pop ecx
xor esi, esi
mov byte [ebp - 4], 4
cmp dword [ebp + 0x6b8], esi
jne 0x418b24
push str.download_interface.dll
lea ecx, [ebp + 0x6a4]
call dword [0x434368]
mov eax, dword [ebp + 0x654]
cmp dword [ebp + 0x668], ebx
jae 0x418b38
lea eax, [ebp + 0x654]
push eax
lea ecx, [ebp]
call fcn.00418974
mov eax, dword [ebp + 0x6a8]
mov byte [ebp - 4], 5
cmp dword [ebp + 0x6bc], ebx
jae 0x418b59
lea eax, [ebp + 0x6a8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, esi
jne 0x418b73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x418e80
cmp dword [ebp - 0x1c], esi
je 0x418b8a
push esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e7b
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 0x418b6c
xor edi, edi
mov byte [ebp - 0x16], 1
cmp dword [ebp - 0x1c], edi
je 0x418c47
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e7b
cmp byte [ebp + 0x85c], 0
mov esi, 0x438ff0
je 0x418d53
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x418d53
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 0x418c9c
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
cmp eax, edi
je 0x418d3e
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x418cc3
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x6fc]
jae 0x418cdb
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 0x418cef
mov eax, dword [ebx + 4]
jmp 0x418cf2
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 0x418d41
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x418d41
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 0x418e80
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 0x418d56
mov ebx, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], edi
jne 0x418dd5
cmp dword [ebp + 0x6f4], 0x10
mov eax, dword [ebp + 0x6e0]
jae 0x418d70
lea eax, [ebp + 0x6e0]
cmp dword [ebp + 0x710], 0x10
mov ecx, dword [ebp + 0x6fc]
mov dword [ebp - 0x10], eax
jae 0x418d88
lea ecx, [ebp + 0x6fc]
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebx + 0x14]
jb 0x418d96
mov ebx, dword [ebx + 4]
jmp 0x418d99
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 0x418b6c
cmp dword [ebp - 0x1c], edi
je 0x418dd5
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e7b
push dword [ebp + 0x854]
push dword [ebp - 0x14]
call dword [ebp - 0x48]
push dword [ebp - 0x14]
call dword [ebp - 0x4c]
cmp eax, edi
jne 0x418b6c
mov ebx, dword [ebp - 0x1c]
mov byte [ebp - 0x15], 1
cmp ebx, edi
je 0x418e06
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e7b
mov esi, dword [ebp - 0x54]
lea eax, [ebp + 0x208]
push eax
push dword [ebp - 0x14]
call dword [ebp - 0x5c]
cmp esi, edi
je 0x418e3d
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 0x418e80
cmp dword [ebp + 0x208], 0xc
je 0x418e69
cmp ebx, edi
je 0x418e5f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x418e7b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x418e09
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 0x418e80
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 0x419001
cmp dword [ebp - 0x34], esi
je 0x419001
cmp dword [ebp - 0x30], esi
je 0x419001
cmp byte [ebp - 0x15], 0
je 0x418eb9
push dword [ebp - 0x14]
call dword [ebp - 0x34]
cmp dword [ebp - 0x3c], esi
je 0x418f05
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 0x418f05
cmp dword [ebp - 0x10], esi
jae 0x418f05
lea eax, [ebp + 0x730]
push eax
lea ecx, [ebp + 0x6c0]
call dword [0x43435c]
push dword [ebp - 0x14]
call dword [ebp - 0x30]
test edi, edi
jne 0x418fc8
mov eax, dword [ebp - 0x20]
cmp dword [eax + 0x14], edi
je 0x418fc8
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 0x418fa8
cmp dword [ebp + 0x72c], 0x10
mov ecx, dword [ebp + 0x718]
jae 0x418f8b
lea ecx, [ebp + 0x718]
cmp dword [ebp + 0x684], 0x10
mov eax, dword [ebp + 0x670]
jae 0x418fa0
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 0x419001
cmp dword [ebp + 0x6d4], 0
je 0x419001
cmp dword [ebp + 0x6d8], 0x10
mov eax, dword [ebp + 0x6c4]
jae 0x418fef
lea eax, [ebp + 0x6c4]
push dword [ebp - 0x20]
push dword [ebp + 0x6d4]
push eax
call fcn.00415c1c
add esp, 0xc
xor esi, esi
cmp edi, esi
je 0x4190a2
cmp dword [ebp + 0x6d4], esi
je 0x4190a2
cmp dword [ebp - 0x24], esi
je 0x4190a2
cmp dword [ebp - 0x38], esi
je 0x4190a2
cmp byte [ebp + 0x860], 0
jne 0x4190a2
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 0x419065
lea eax, [ebp + 0x718]
push dword [ebp + 0x728]
push eax
call dword [ebp - 0x24]
test eax, eax
je 0x419092
cmp dword [ebp + 0x72c], 0x10
mov eax, dword [ebp + 0x718]
jae 0x419088
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 0x4190b0
cmp dword [ebp - 0x28], esi
je 0x4190b0
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 0x419123
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.0042860c
add ebp, 0x838
leave
ret