Function at 0x1009f3f0
Capabilities:
Print debug messages
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x1024bff4
push eax
mov eax, 0x1104
mov dword fs:[0], esp
call fcn.1006fb30
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x38], esi
mov ecx, dword [esi + 0x2690]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
je 0x1009f43f
mov eax, 0xe000000a
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x2694]
test eax, eax
je 0x1009f45c
push eax
call fcn.1006e708
add esp, 4
mov dword [esi + 0x2694], 0
mov eax, dword [esi + 0x2678]
xor ecx, ecx
mov edx, 8
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
mov edi, dword [esi + 0x2678]
xor ecx, ecx
mov dword [esi + 0x2694], eax
mov edx, 0x3c
mov eax, edi
mov byte [ebp - 0xd], 0
mul edx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x44], edi
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.1006e70d
add esp, 8
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x1009f4e3
push 0x1002fe90
push 0x1002fe50
push dword [ebp - 0x50]
mov dword [eax], edi
lea edi, [eax + 4]
push 0x3c
push edi
mov dword [ebp - 0x28], edi
call fcn.1006eb68
jmp 0x1009f4e8
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov edx, dword [esi + 0x2678]
mov dword [ebp - 0x2c], eax
test edx, edx
je 0x1009f6d7
lea ecx, [esi + 0x2680]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ecx
add edi, 0x18
mov dword [edi - 8], eax
lea eax, [ebp - 0xd]
push 8
mov dword [edi], eax
mov dword [edi - 0x18], esi
call fcn.1006e6a7
mov dword [ebp - 0x44], eax
push 8
mov dword [eax], vtable.WM::GMFile.0
mov dword [eax + 4], 0xffffffff
mov dword [edi - 0x14], eax
call fcn.1006e6a7
mov dword [ebp - 0x44], eax
push 0x14
mov dword [eax], vtable.WM::GMFile.0
mov dword [eax + 4], 0xffffffff
mov dword [edi - 0x10], eax
call fcn.1006e6a7
add esp, 0xc
mov dword [ebp - 0x20], eax
mov dword [eax + 0x10], 0xffffffff
cmp byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment], 0
jne 0x1009f58e
mov ecx, eax
call sym.WMCommon.dll_private:_bool___thiscall_WM::GMSocket::InitEnvironment_void_
movzx ecx, byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment]
test al, al
mov eax, 1
cmovne ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [sym.WMCommon.dll_bool_WM::GMSocket::m_isInitEnvironment], cl
mov dword [edi - 0xc], eax
mov ecx, esi
lea eax, [ebp - 0xf8]
push eax
call sym.WMCommon.dll_private:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMHttpDownload::GetNextServer_void_
lea ecx, [edi + 4]
mov dword [ebp - 0x4c], eax
cmp ecx, eax
je 0x1009f5d5
call fcn.1001a5a0
mov eax, dword [ebp - 0x4c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [edi + 4], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [edi + 0x14], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0xf8]
call fcn.1001a5a0
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, dword [esi + 0x2694]
add esp, 4
mov esi, dword [ebp - 0x2c]
mov dword [ecx + esi*8], eax
mov eax, esi
mov esi, dword [ebp - 0x38]
mov dword [ecx + eax*8 + 4], edx
mov edx, dword [esi + 0x268c]
mov ecx, dword [ebp - 0x34]
cmp dword [ecx + edx + 0x1c], 0
jl 0x1009f699
jg 0x1009f61d
cmp dword [ecx + edx + 0x18], 0
jbe 0x1009f699
push 4
call fcn.1006e6a7
mov esi, eax
mov dword [ebp - 0x1c], esi
push 0x18
mov dword [ebp - 4], 1
call fcn.1006e6a7
mov edx, dword [ebp - 0x2c]
lea ecx, [edi - 0x18]
mov dword [ebp - 0x44], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0xc], 0
mov dword [esi], eax
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x58], esi
mov dword [eax + 4], sym.WMCommon.dll_private:_static_void___cdecl_WM::GMHttpDownload::DownloaderFunc_void__
lea eax, [ebp - 0x58]
push eax
call fcn.10030560
mov ecx, dword [ebp - 0x58]
add esp, 0xc
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMThread::Start_void_
mov esi, dword [ebp - 0x38]
jmp 0x1009f6bb
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push ecx
mov edx, eax
lea ecx, [esi + 0x2680]
call fcn.10030560
add esp, 4
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x2c]
add edi, 0x3c
add dword [ebp - 0x34], 0x28
inc eax
mov edx, dword [esi + 0x2678]
mov dword [ebp - 0x2c], eax
cmp eax, edx
jb 0x1009f511
xor ecx, ecx
mov eax, edx
mov edi, 4
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [esi + 0x2678]
mul edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1006e70d
mov dword [ebp - 0x18], eax
add esp, 8
lea eax, [esi + 0x2680]
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x34], eax
nop
mov edx, dword [eax]
xor edi, edi
mov eax, dword [eax + 4]
xor ecx, ecx
sub eax, edx
mov dword [ebp - 0x20], edx
sar eax, 2
test eax, eax
je 0x1009fe8e
mov edi, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x18]
mov edx, esi
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], edi
add eax, 0x34
sub dword [ebp - 0x14], esi
mov edi, ecx
mov esi, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
cmp dword [eax], 0
je 0x1009f77d
mov eax, dword [esi + ecx*4]
test eax, eax
je 0x1009f77a
mov eax, dword [eax]
test eax, eax
je 0x1009f76c
mov eax, dword [eax + 0x10]
jmp 0x1009f76e
xor eax, eax
mov esi, dword [ebp - 0x14]
inc edi
mov dword [esi + edx], eax
mov dword [edx], ecx
add edx, 4
mov eax, dword [ebp - 0x30]
add eax, 0x3c
inc ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
cmp ecx, eax
mov eax, dword [ebp - 0x30]
jb 0x1009f755
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1009fe8e
push 0x14d
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push edi
mov dword [ebp - 0x20], 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x14], eax
cmp eax, 0x102
jne 0x1009f992
mov ecx, dword [esi + 0x2690]
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
test eax, eax
jne 0x1009fe4f
xor esi, esi
mov eax, 1
test edi, edi
je 0x1009f958
cmp edi, 8
jb 0x1009f934
cmp dword [0x103203bc], 2
jl 0x1009f934
movaps xmm4, xmmword [0x10282b70]
mov eax, edi
mov edx, dword [ebp - 0x28]
and eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
movaps xmm5, xmm4
mov eax, dword [ebp - 0x18]
add eax, 8
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x14], eax
nop
mov eax, dword [eax + 4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x14]
mov edi, dword [edx + ecx*4 + 0x38]
mov eax, dword [eax]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x14]
movd xmm2, edi
mov esi, dword [edx + ecx*4 + 0x38]
mov eax, dword [eax - 4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x14]
movd xmm0, esi
mov esi, dword [ebp - 0x14]
mov edx, dword [edx + ecx*4 + 0x38]
mov eax, dword [eax - 8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x14]
movd xmm1, edx
mov edx, dword [ebp - 0x28]
punpckldq xmm1, xmm2
mov eax, dword [eax + 0xc]
movd xmm3, dword [edx + ecx*4 + 0x38]
mov ecx, dword [esi + 0x14]
shl ecx, 4
sub ecx, dword [esi + 0x14]
punpckldq xmm3, xmm0
punpckldq xmm3, xmm1
pmaxsd xmm4, xmm3
mov edi, dword [edx + ecx*4 + 0x38]
mov ecx, dword [esi + 0x10]
shl ecx, 4
sub ecx, dword [esi + 0x10]
movd xmm2, edi
mov esi, dword [edx + ecx*4 + 0x38]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x14]
movd xmm0, esi
mov esi, dword [ebp - 0x4c]
mov edx, dword [edx + ecx*4 + 0x38]
add esi, 8
mov eax, dword [eax + 8]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x14]
movd xmm1, edx
add eax, 0x20
mov edx, dword [ebp - 0x28]
punpckldq xmm1, xmm2
mov dword [ebp - 0x14], eax
movd xmm3, dword [edx + ecx*4 + 0x38]
punpckldq xmm3, xmm0
punpckldq xmm3, xmm1
pmaxsd xmm5, xmm3
cmp esi, dword [ebp - 0x1c]
jb 0x1009f830
mov edi, dword [ebp - 0x24]
pmaxsd xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pmaxsd xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
pmaxsd xmm4, xmm0
movd eax, xmm4
cmp esi, edi
jae 0x1009f958
mov edx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + esi*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + ecx*4 + 0x38]
cmp eax, edx
cmovle eax, edx
inc esi
cmp esi, edi
jb 0x1009f938
mov esi, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x20]
je 0x1009f973
mov ecx, dword [esi + 0x2690]
mov dword [ebp - 0x20], eax
test ecx, ecx
je 0x1009f973
mov edx, dword [ecx]
push eax
call dword [edx + 0x20]
push 0x14d
push 0
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov dword [ebp - 0x14], eax
cmp eax, 0x102
je 0x1009f7d3
cmp eax, edi
jae 0x1009fe81
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + ecx*4 + 0x34]
lea eax, [esi + 0x2680]
test ecx, ecx
je 0x1009f720
cmp ecx, 0xe0000007
je 0x1009f9d0
cmp ecx, 0xe0000005
jne 0x1009fe5c
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 4], 2
nop dword [eax + eax]
push 0x800
lea eax, [ebp - 0x1110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x800
lea eax, [ebp - 0x910]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x50], 0x50
lea eax, [ebp - 0x110]
mov ecx, esi
push eax
call sym.WMCommon.dll_private:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMHttpDownload::GetNextServer_void_
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x1c], eax
cmp ecx, eax
je 0x1009fa64
call fcn.1001a5a0
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x70], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x60], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea ecx, [ebp - 0x110]
call fcn.1001a5a0
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x910]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x1110]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call sym.WMCommon.dll_private:_static_bool___cdecl_WM::GMHttpDownload::ParseUrl_wchar_t_const___wchar_t___unsigned_short_int___wchar_t__
add esp, 0x10
test al, al
jne 0x1009fab8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x30]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x28]
inc dword [eax + ecx*4 + 0x14]
jmp 0x1009fb41
lea eax, [ebp - 0x39]
mov byte [ebp - 0x39], 0
push eax
lea eax, [ebp - 0x7c]
mov ecx, esi
push eax
lea eax, [ebp - 0x910]
push eax
push dword [ebp - 0x50]
lea eax, [ebp - 0x1110]
push eax
call sym.WMCommon.dll_private:_long_int___thiscall_WM::GMHttpDownload::QuerySize_wchar_t_const___unsigned_short_int__wchar_t_const___long_long___int64____bool__
test eax, eax
jne 0x1009faf8
mov eax, dword [ebp - 0x7c]
cmp eax, dword [esi + 0x2668]
jne 0x1009fb41
mov eax, dword [ebp - 0x78]
cmp eax, dword [esi + 0x266c]
je 0x1009fb69
jmp 0x1009fb41
cmp eax, 0xe0000005
jne 0x1009fb41
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
inc dword [ebp - 0x30]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [ebp - 0x28]
inc dword [eax + ecx*4 + 0x14]
mov eax, 0x2aaaaaab
mov ecx, dword [esi + 0x269c]
sub ecx, dword [esi + 0x2698]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
cmp dword [ebp - 0x30], eax
ja 0x1009fe65
mov ecx, dword [esi + 0x269c]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x2698]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
add eax, eax
cmp dword [ebp - 0x30], eax
jbe 0x1009f9f0
cmp byte [ebp - 0xd], 0
jne 0x1009fe70
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov ecx, dword [edi + ecx*4 + 4]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.WM::GMFile.0
jne 0x100a0111
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1009fbba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1009fbba
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov ecx, dword [edi + ecx*4 + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.WM::GMFile.0
jne 0x100a0118
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x1009fbfe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1009fbfe
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], 0xffffffff
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
mov eax, dword [edi + ecx*4 + 0xc]
push dword [eax + 0x10]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
mov eax, edx
shl eax, 4
sub eax, edx
add eax, 7
lea ecx, [edi + eax*4]
lea eax, [ebp - 0x70]
cmp ecx, eax
je 0x1009fc52
cmp dword [ebp - 0x5c], 8
push dword [ebp - 0x60]
cmovae eax, dword [ebp - 0x70]
push eax
call fcn.1001a600
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + eax*4]
mov ecx, dword [esi + 0x2680]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x1009fcbd
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1009fca9
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
je 0x1009fc84
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], 0
mov dword [eax + 0xc], 0
mov eax, dword [ebp - 0x24]
push 0x18
push dword [eax]
call fcn.1006e6d7
mov eax, dword [ebp - 0x24]
add esp, 8
mov dword [eax], 0
jmp 0x1009fcac
mov eax, dword [ebp - 0x24]
push 4
push eax
call fcn.1006e6d7
mov ecx, dword [esi + 0x2680]
add esp, 8
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], 1
mov edi, dword [edx + eax*4]
test edi, edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x28]
jl 0x1009fd41
mov eax, dword [esi + 0x2684]
mov edx, eax
mov esi, dword [ebp - 0x1c]
sub edx, ecx
mov dword [ebp - 0x24], eax
sar edx, 2
lea eax, [esi + 1]
cmp eax, edx
jle 0x1009fcf8
mov eax, edx
sub eax, esi
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
lea eax, [ecx + esi*4]
lea esi, [ecx + esi*4]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x88], ecx
lea edx, [eax + edx*4]
cmp esi, edx
je 0x1009fd41
push ecx
lea ecx, [ebp - 0x51]
call fcn.1001dbf0
mov eax, dword [ebp - 0x24]
sub eax, edx
push eax
push edx
push esi
mov dword [ebp - 0x24], eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x24]
add esp, 0x10
add eax, esi
mov esi, dword [ebp - 0x38]
mov dword [esi + 0x2684], eax
push 4
call fcn.1006e6a7
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
push 0x18
mov ecx, dword [ecx + eax*4]
mov edx, ecx
shl edx, 4
sub edx, ecx
lea esi, [edi + edx*4]
call fcn.1006e6a7
mov dword [ebp - 0x1c], eax
add esp, 8
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x34]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0xc], 0
mov dword [edx], eax
mov dword [eax], esi
mov eax, dword [edx]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 2
mov dword [ebp - 0x48], edx
mov dword [eax + 4], sym.WMCommon.dll_private:_static_void___cdecl_WM::GMHttpDownload::DownloaderFunc_void__
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x20], eax
test eax, eax
jg 0x1009fdd4
mov eax, dword [ecx]
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x8c], eax
push eax
lea eax, [ebp - 0x90]
jmp 0x1009fe19
mov eax, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
sub eax, dword [ecx]
sar eax, 2
cmp dword [ebp - 0x20], eax
jl 0x1009fe00
mov eax, dword [ebp - 0x1c]
cmp dword [ecx + 8], eax
je 0x1009fdf4
mov dword [eax], edx
add dword [ecx + 4], 4
jmp 0x1009fe1f
lea edx, [ebp - 0x48]
push edx
push eax
call fcn.10020f70
jmp 0x1009fe1f
mov eax, dword [ecx]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x94], eax
lea eax, [eax + edx*4]
lea edx, [ebp - 0x48]
push edx
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.10030760
mov ecx, dword [ebp - 0x48]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMThread::Start_void_
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + esi*4]
mov ecx, eax
shl ecx, 4
sub ecx, eax
inc dword [edi + ecx*4 + 0x14]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
mov eax, dword [ebp - 0x34]
jmp 0x1009f720
mov dword [ebp - 0x40], 0xe000000a
mov byte [ebp - 0xd], 1
jmp 0x1009fe9b
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0xd], 1
jmp 0x1009fe9b
mov dword [ebp - 0x40], 0xe0000005
mov byte [ebp - 0xd], 1
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
jmp 0x1009fe95
mov dword [ebp - 0x40], 1
mov byte [ebp - 0xd], 1
jmp 0x1009fe9b
mov dword [ebp - 0x40], 0
cmp byte [ebp - 0xd], 0
je 0x1009fede
push 0xd05
push 1
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x1009fede
xor esi, esi
test edi, edi
je 0x1009fede
nop dword [eax]
push str.GMHttpDownload_TerminateThread_when_exit_thread.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 0x2c]
push 1
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
inc esi
cmp esi, edi
jb 0x1009fec0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x1009ff1d
push 0x1002fe90
lea esi, [eax - 4]
mov dword [ebp - 4], 4
push dword [esi]
push 0x3c
push eax
call fcn.1006e724
mov ecx, dword [esi]
shl ecx, 4
sub ecx, dword [esi]
lea eax, [ecx*4 + 4]
push eax
push esi
call fcn.1006e716
add esp, 8
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x2c]
call fcn.1006e708
push dword [ebp - 0x18]
call fcn.1006e708
mov esi, dword [ebp - 0x34]
xor edx, edx
add esp, 8
mov dword [ebp - 0x20], edx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x1009ffb5
mov edi, dword [ecx + edx*4]
test edi, edi
je 0x1009ff9a
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x1009ff8c
mov ecx, dword [eax + 0x10]
cmp ecx, 0xffffffff
je 0x1009ff6f
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x44]
mov dword [eax + 0x10], 0xffffffff
mov byte [eax + 8], 0
mov dword [eax + 0xc], 0
push 0x18
push dword [edi]
call fcn.1006e6d7
add esp, 8
mov dword [edi], 0
push 4
push edi
call fcn.1006e6d7
mov edx, dword [ebp - 0x20]
add esp, 8
mov eax, dword [esi]
mov dword [eax + edx*4], 0
inc edx
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
sar eax, 2
mov dword [ebp - 0x20], edx
cmp edx, eax
jb 0x1009ff46
mov esi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
mov dword [esi + 0x2684], ecx
test eax, eax
jne 0x100a0100
lea edx, [esi + 0x2008]
mov dword [ebp - 0xb8], eax
mov ecx, edx
mov dword [ebp - 0xb4], 7
mov word [ebp - 0xc8], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1009fff0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xc8]
call fcn.1001a600
lea edx, [esi + 0x2210]
mov dword [ebp - 4], 5
mov ecx, edx
mov dword [ebp - 0xa0], 0
xor eax, eax
mov dword [ebp - 0x9c], 7
mov word [ebp - 0xb0], ax
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a0040
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.1001a600
lea eax, [ebp - 0xc8]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0xb0]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::MyMoveFileEx_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 8
lea ecx, [ebp - 0xb0]
call fcn.1001a5a0
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.1001a5a0
add esi, 0x2418
mov dword [ebp - 0xd0], 0
mov ecx, esi
mov dword [ebp - 0xcc], 7
xor eax, eax
mov word [ebp - 0xe0], ax
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100a00c0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0xe0]
call fcn.1001a600
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], 7
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFileSystemUtils::DeleteFileAlways_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
lea ecx, [ebp - 0xe0]
call fcn.1001a5a0
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call edx
jmp 0x1009fbba
call edx
jmp 0x1009fbfe