Function at 0x1001eb20
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x1002f119
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1004a0b4]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1004a0b4]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov esi, dword [esp + 0x60]
push str.DownloadFileThread_Start_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.xwmfUI.dll_public:_static_class_XFClientUI____cdecl_XFClientUI::getInstance_void_]
xor edi, edi
push edi
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_class_XWClientSM____cdecl_XWClientSM::getInstance_char_const___unsigned_long_int_]
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], eax
xor ebp, ebp
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov eax, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
mov dword [eax], 0xffffffff
cmp dword [esi + 0x38], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x14], edi
jbe 0x1001f068
mov dword [esp + 0x20], edi
test dword [esi + 0x40], 0x80000
jne 0x1001ebc8
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
call dword [sym.imp.xwmfUI.dll_public:_void___thiscall_XFClientUI::setProgressIndex_int_]
mov eax, dword [esi + 0xc]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001ebd0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001ec02
mov ecx, dword [esi + 0x20]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x1001ec08
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1c]
mov ebx, dword [esp + 0x20]
add eax, ebx
mov eax, dword [eax + 0x14]
lea edi, [edi + eax + 0xb]
push edi
call dword [sym.imp.MSVCR80.dll_malloc]
push edi
mov ebp, eax
push 0
push ebp
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x1c]
add esp, 0x10
test eax, eax
je 0x1001ec52
mov ecx, dword [esi + 0x20]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x1001ec58
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1c]
add eax, ebx
cmp dword [eax + 0x18], 0x10
jb 0x1001ec68
mov eax, dword [eax + 4]
jmp 0x1001ec6b
add eax, 4
mov edx, dword [esi + 0xc]
push edx
push eax
push str.filename_s_s
push edi
push ebp
call dword [sym.imp.MSVCR80.dll_sprintf_s]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add esp, 0x14
push 0x100385cc
push ebp
push eax
push ecx
mov ecx, dword [esp + 0x38]
push edx
call dword [sym.imp.XecureMacuxCSM.dll_public:_char____thiscall_XWClientSM::blockEnc_unsigned_long_int__char_const___char_const___char_const___char_const__]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x1001f002
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001ecb0
sub eax, edx
je 0x1001f002
mov eax, dword [esi + 0x2c]
test eax, eax
lea ebx, [esi + 0x28]
je 0x1001ece9
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x1001ecef
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [ebx + 4]
add eax, dword [esp + 0x20]
lea ecx, [esp + 0x30]
push eax
call dword [0x100321c0]
test dword [esi + 0x40], 0x20000
jne 0x1001ed2a
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push str..tmp
push str._xwmftmp
call sym.NativeMngUAC.dll_public:_char____thiscall_NativeFCMSWrapper::getTempFileName_char___char__
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x48], 0x10
mov edi, dword [esp + 0x34]
jae 0x1001ed39
lea edi, [esp + 0x34]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001ed5e
mov ecx, dword [esi + 0x20]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x14], eax
jb 0x1001ed64
call dword [sym.imp.MSVCR80.dll__invalid_parameter_noinfo]
mov eax, dword [esi + 0x1c]
add eax, dword [esp + 0x20]
cmp dword [eax + 0x18], 0x10
jb 0x1001ed76
mov ecx, dword [eax + 4]
jmp 0x1001ed79
lea ecx, [eax + 4]
mov eax, dword [esi + 0x40]
mov edx, eax
and edx, 0x80000
neg edx
sbb edx, edx
not edx
and edx, sym.NativeMngUAC.dll_protected:_static_int___cdecl_NativeFCMSWrapper::ProgressCallback_void___char_const___long_long___int64___long_long___int64___int_
push edx
mov edx, dword [esi + 0x3c]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esi + 0x14]
push edx
mov edx, dword [esi + 0xc]
push edi
push ecx
mov ecx, dword [esi + 0x10]
push eax
mov eax, dword [esi + 8]
push ecx
mov ecx, dword [esi + 4]
push edx
mov edx, dword [esi]
push eax
push ecx
mov ecx, dword [esp + 0x54]
push edx
call dword [sym.imp.XecureMacuxCSM.dll_public:_char____thiscall_XWClientSM::downloadFile_unsigned_long_int__char_const___char_const___char_const___char_const___int__char_const___char_const___char_const___char_const___int__int____cdecl___void___char_const___long_long___int64___long_long___int64___int__]
mov edi, eax
test edi, edi
je 0x1001eec4
cmp byte [edi], 0
je 0x1001eec4
push 6
push str.CANCEL
push edi
call dword [sym.imp.MSVCR80.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x1001efae
cmp dword [esp + 0x14], 0
jle 0x1001ee05
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0x10035b24
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
mov eax, dword [esp + 0x14]
push eax
mov ecx, ebx
call fcn.1001bba0
cmp dword [eax + 0x18], 0x10
jb 0x1001ee1c
mov eax, dword [eax + 4]
jmp 0x1001ee1f
add eax, 4
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push eax
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
test dword [esi + 0x40], 0x20000
jne 0x1001ee9e
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.1001bba0
cmp dword [eax + 0x18], 0x10
jb 0x1001ee4f
mov eax, dword [eax + 4]
jmp 0x1001ee52
add eax, 4
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push eax
push 0xfde9
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_File_Delete_unsigned_int__char_const__
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
call fcn.1001bba0
cmp dword [eax + 0x18], 0x10
jb 0x1001ee7a
mov eax, dword [eax + 4]
jmp 0x1001ee7d
add eax, 4
cmp dword [esp + 0x48], 0x10
mov ecx, dword [esp + 0x34]
jae 0x1001ee8c
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0xfde9
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_File_Rename_unsigned_int__char_const___char_const__
test dword [esi + 0x40], 0x80000
jne 0x1001eeb3
mov ecx, dword [esp + 0x18]
push 2
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::setProgressStatus_unsigned_long_int_]
push edi
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::free_void__]
add esp, 4
xor edi, edi
jmp 0x1001ef4c
cmp dword [esp + 0x14], 0
mov edi, 2
mov dword [esp + 0x24], 1
jle 0x1001eeec
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0x10035b24
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x1001eefb
lea eax, [esp + 0x34]
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push eax
push 0xfde9
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_File_Delete_unsigned_int__char_const__
mov eax, dword [esi + 0x40]
test eax, 0x80000
jne 0x1001ef41
test eax, 0x800000
mov ecx, dword [esp + 0x18]
push 3
je 0x1001ef2e
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::setProgressStatus_unsigned_long_int_]
cmp eax, 0xffffffff
jmp 0x1001ef46
test eax, 0x400000
je 0x1001effa
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::setProgressStatus_unsigned_long_int_]
jmp 0x1001ef4c
test eax, 0x400000
je 0x1001f068
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::free_void__]
add esp, 4
test ebp, ebp
mov dword [esp + 0x1c], 0
je 0x1001ef90
mov eax, ebp
lea edx, [eax + 1]
jmp 0x1001ef70
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001ef70
sub eax, edx
push eax
push 0
push ebp
call sub.MSVCR80.dll_memset
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x10
xor ebp, ebp
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], 0x1c
add eax, 1
cmp eax, dword [esi + 0x38]
mov dword [esp + 0x14], eax
jb 0x1001ebb0
jmp 0x1001f068
push edi
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::free_void__]
add esp, 4
cmp dword [esp + 0x14], 0
mov edi, 1
jle 0x1001efd8
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0x10035b24
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
cmp dword [esp + 0x48], 0x10
mov eax, dword [esp + 0x34]
jae 0x1001efe7
lea eax, [esp + 0x34]
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push eax
push 0xfde9
call sym.NativeMngUAC.dll_public:_int___thiscall_NativeFCMSWrapper::XMF_File_Delete_unsigned_int__char_const__
jmp 0x1001f068
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::setProgressStatus_unsigned_long_int_]
jmp 0x1001f068
test dword [esi + 0x40], 0x80000
jne 0x1001f017
mov ecx, dword [esp + 0x18]
push 3
call dword [sym.imp.xwmfUI.dll_public:_int___thiscall_XFClientUI::setProgressStatus_unsigned_long_int_]
cmp dword [esp + 0x14], 0
mov edi, 2
mov dword [esp + 0x24], 1
jle 0x1001f03f
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0x10035b24
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
test ebp, ebp
je 0x1001f068
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001f048
sub eax, edx
push eax
push 0
push ebp
call sub.MSVCR80.dll_memset
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x10
xor ebp, ebp
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
mov dword [ecx], edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x38]
jae 0x1001f0a0
lea esp, [esp]
test edi, edi
jle 0x1001f098
mov ecx, dword [sym.NativeMngUAC.dll_class_NativeFCMSWrapper__NativeFCMSWrapper::mNativeFCMSWrapper]
push 0x10035b24
add ecx, 4
call dword [sym.imp.MSVCP80.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__]
add edi, 1
cmp edi, dword [esi + 0x38]
jb 0x1001f080
mov esi, dword [esi + 0x40]
test esi, 0x200000
jne 0x1001f0ba
cmp dword [esp + 0x24], 0
jne 0x1001f0cc
test esi, 0x100000
je 0x1001f0cc
test esi, 0x80000
jne 0x1001f0cc
mov ecx, dword [esp + 0x18]
call dword [sym.imp.xwmfUI.dll_public:_void___thiscall_XFClientUI::endProgress_void_]
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::removeInstance_void_]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1001f0e4
push eax
call dword [sym.imp.XecureMacuxCSM.dll_public:_static_void___cdecl_XWClientSM::free_void__]
add esp, 4
test ebp, ebp
je 0x1001f10e
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1001f0f0
sub eax, edx
push eax
push 0
push ebp
call sub.MSVCR80.dll_memset
push ebp
call dword [sym.imp.MSVCR80.dll_free]
add esp, 0x10
push str.DownloadFileThread_End_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0xffffffff
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.1002d777
add esp, 0x48
ret 4