Function at 0x435cb0
Capabilities:
Check for time delay via gettickcount
Inspect section memory permissions
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be4c3
mov eax, dword fs:[0]
push eax
sub esp, 0xf0
push ebx
push esi
push edi
mov eax, dword [0x4e880c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], str._Stop_enter
mov dword [ebp - 0x24], 0x4cc010
mov dword [ebp - 0x20], str.CDownloaderMgr::Stop
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], 0xa1
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x40], ebx
call fcn.0048da31
lea ecx, [ebp - 0x10]
push ecx
push 0x4cba1c
lea edx, [ebp - 0x58]
push 0x4cbfb0
push edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004811e0
lea eax, [esi + 0x24]
add esp, 0x14
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], bl
call fcn.00418740
cmp byte [esi + 4], bl
mov dword [ebp - 4], ebx
jne 0x435d8a
cmp byte [ebp - 0x14], bl
mov dword [ebp - 4], 0xffffffff
je 0x43612b
mov eax, dword [ebp - 0x18]
add dword [eax], 0xffffffff
jne 0x43612b
xor ecx, ecx
lea edx, [eax + 4]
xchg dword [edx], ecx
jmp 0x4360fa
mov byte [esi + 4], bl
call fcn.004b8f10
mov eax, dword [esi + 0x48]
add eax, 0x14
cmp byte [esi + 0x58], bl
je 0x435dad
lea ecx, [esi + 0x5c]
push ecx
mov ecx, dword [eax + 0x1c]
push eax
call fcn.0042c900
mov byte [esi + 0x58], bl
call fcn.004b8f10
mov eax, dword [esi + 0x70]
add eax, 0x14
cmp byte [esi + 0x80], bl
je 0x435dd6
mov ecx, dword [eax + 0x1c]
lea edx, [esi + 0x84]
push edx
push eax
call fcn.0042c900
mov byte [esi + 0x80], bl
call fcn.004b8f10
mov eax, dword [esi + 0x98]
add eax, 0x14
cmp byte [esi + 0xa8], bl
je 0x435e02
lea ecx, [esi + 0xac]
push ecx
mov ecx, dword [eax + 0x1c]
push eax
call fcn.0042c900
mov byte [esi + 0xa8], bl
call fcn.004b8f10
mov eax, dword [esi + 0xc0]
add eax, 0x14
cmp byte [esi + 0xd0], bl
je 0x435e2e
mov ecx, dword [eax + 0x1c]
lea edx, [esi + 0xd4]
push edx
push eax
call fcn.0042c900
mov byte [esi + 0xd0], bl
call fcn.004b8f10
mov ecx, dword [esi + 0x14]
mov eax, 0x426f20
push esi
push eax
call fcn.0042e870
mov ecx, dword [esi + 0x1184]
cmp ecx, ebx
je 0x435e5b
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push 1
call edx
mov dword [esi + 0x1184], ebx
mov edi, dword [esi + 0x20]
cmp edi, ebx
je 0x435e89
mov eax, dword [edi]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], eax
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x435e80
mov ecx, dword [ebp - 0x10]
call fcn.004221f0
push edi
call fcn.0048c049
add esp, 4
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x20], ebx
call fcn.004221f0
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.xxxxxxxxxxx_DownloadMgr_Stop_Start
call edi
cmp dword [esi + 0x18], ebx
je 0x436059
cmp dword [esi + 0x122c], 3
jae 0x435ebd
mov dword [esi + 0x122c], 5
mov ecx, dword [esi + 0x122c]
push ecx
lea ecx, [ebp - 0x60]
call fcn.00426ed0
mov ecx, dword [esi + 0x18]
push eax
call fcn.00435bf0
test al, al
jne 0x436059
push str.xxxxxxxxxxx_DownloadMgr_thread_wait_time_out
call edi
mov dword [ebp - 0x10], str.DownloadMgr_thread_wait_time_out
mov dword [ebp - 0x24], 0x4cc010
mov dword [ebp - 0x20], str.CDownloaderMgr::Stop
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], 0xcf
mov dword [ebp - 0x4c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x54], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], ebx
call fcn.0048da31
lea eax, [ebp - 0x10]
push eax
push 0x4cba1c
lea ecx, [ebp - 0x58]
push 0x4cbfb0
push ecx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
call fcn.004811e0
add esp, 0x14
cmp byte [esi + 0x1228], bl
je 0x436051
push 0x3039
call fcn.004a8fcd
push ebx
call fcn.0048da31
push eax
call fcn.0048ce25
add esp, 0xc
call fcn.0048ce32
cdq
mov ecx, 0x320
idiv ecx
push 1
push 2
lea ecx, [ebp - 0xe0]
mov edi, edx
sub edi, 0x20000000
call fcn.0040bf20
push edi
push 0x40b000
lea edx, [ebp - 0xe0]
push str.xxx_code0x
push edx
mov byte [ebp - 4], 1
call fcn.0040a0a0
add esp, 8
mov ecx, eax
call fcn.0040b170
mov ecx, eax
call fcn.00433a00
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0040bc10
cmp dword [eax + 0x18], 0x10
jb 0x435fe0
mov eax, dword [eax + 4]
jmp 0x435fe3
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0xfc]
call fcn.00401f9e
push edi
push str.RaiseException__code:_x
push 0x4cbfb0
push 2
push str.CDownloaderMgr::Stop
push 0xdf
push 0x4cc010
call fcn.004245c0
add esp, 0x1c
push ebx
push ebx
push 1
push edi
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov ecx, dword [esi + 0x18]
call fcn.004b8c30
push str.xxxxxxxxxxx_DownloadMgr_Stop_End
call edi
mov dword [ebp - 0x5c], 0x4cc454
mov dword [ebp - 0x6c], 0x4cc010
mov dword [ebp - 0x68], str.CDownloaderMgr::Stop
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x98], 0xeb
mov dword [ebp - 0x94], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x9c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x80]
push edx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], ebx
call fcn.0048da31
lea eax, [ebp - 0x5c]
push eax
push 0x4cba1c
lea ecx, [ebp - 0xa0]
push 0x4cbfb0
push ecx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
call fcn.004811e0
add esp, 0x14
cmp byte [ebp - 0x14], bl
mov dword [ebp - 4], 0xffffffff
je 0x43612b
mov eax, dword [ebp - 0x18]
add dword [eax], 0xffffffff
jne 0x43612b
xor edx, edx
lea ecx, [eax + 4]
xchg dword [ecx], edx
lea ecx, [eax + 8]
mov edx, ecx
mov eax, bind
lock xadd dword [edx], eax
test eax, 0x40000000
jne 0x43612b
cmp eax, 0x80000000
jle 0x43612b
mov eax, ecx
lock bts dword [eax], 0x1e
jb 0x43612b
call fcn.00418100
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret