Function at 0x41d730
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43aabb
push eax
mov dword fs:[0], esp
sub esp, 0xb4
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x1c8]
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 4]
mov bl, byte [esp + 0xd4]
xor edi, edi
cmp ecx, edi
je 0x41d7e4
test bl, bl
jne 0x41d7e4
mov ecx, dword [esi + 0x18]
mov eax, ecx
shr eax, 2
lea edx, [eax*4]
sub ecx, edx
mov edx, dword [esi + 0x14]
cmp edx, eax
ja 0x41d78f
sub eax, edx
mov edx, dword [esi + 0x10]
mov eax, dword [edx + eax*4]
mov ecx, dword [eax + ecx*4]
mov eax, dword [esi + 0x1c]
cmp eax, edi
mov dword [esp + 0x14], ecx
je 0x41d7c2
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
inc ecx
shl edx, 2
cmp edx, ecx
mov dword [esi + 0x18], ecx
ja 0x41d7b7
mov dword [esi + 0x18], edi
dec eax
cmp eax, edi
mov dword [esi + 0x1c], eax
jne 0x41d7c2
mov dword [esi + 0x18], edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, esi
call fcn.00427870
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dl, byte [ecx + 0x41]
test dl, dl
je 0x41d7e4
cmp dword [esi + 0x1c], edi
jne 0x41d771
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x41d8ec
cmp bl, 1
je 0x41d8ec
mov edx, dword [esi + 0x2b4]
inc edx
mov dword [esi + 0x2b4], edx
mov cl, byte [esi + 0x2b8]
test cl, cl
je 0x41d824
mov ecx, dword [esi + 0x2b0]
cmp dword [esi + 0x2b4], ecx
jb 0x41d824
mov byte [esi + 0x2b8], 0
mov edi, dword [eax + 0x10]
mov byte [edi + 0x41], 1
call sub.KERNEL32.dll_GetTickCount
push ebp
mov dword [edi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x64
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0xcc], 7
je 0x41d866
push esi
push edi
mov ecx, eax
call fcn.00418ab0
mov dword [esp + 0x10], eax
jmp 0x41d86e
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x10]
lea eax, [esi + 0x1f8]
push eax
mov dword [esp + 0xd0], 0xffffffff
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x24]
mov ecx, dword [ebp + 4]
lea edi, [esi + 0x20]
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
mov ecx, edi
call fcn.00405cf0
push 1
mov ecx, edi
mov ebx, eax
call fcn.0041b3d0
mov dword [ebp + 4], ebx
mov edx, dword [ebx + 4]
mov dword [edx], ebx
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x41d8c8
mov eax, ecx
mov edx, dword [esi + 0x234]
mov dword [esi + 0x7c], eax
mov eax, dword [esp + 0x18]
inc edx
push eax
mov dword [esi + 0x234], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x10]
jmp 0x41de06
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call ebp
lea ebx, [esi + 0x1e0]
push ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x80], edi
jne 0x41d928
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [esi + 0xb8]
mov dword [esi + 0x80], eax
mov eax, dword [esi + 0x74]
mov dword [esi + 0x84], eax
mov dword [esp + 0x10], edi
mov edi, dword [esi + 0x240]
test edi, edi
je 0x41d956
mov al, byte [esi + 0x23d]
test al, al
jne 0x41d956
mov al, byte [edi + 0x50]
test al, al
jne 0x41d956
cmp dword [edi + 0x4c], 6
jae 0x41dceb
jmp 0x41dc60
mov ecx, dword [esi + 0x22c]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 0
je 0x41dc1c
jmp 0x41d980
mov eax, dword [esp + 0x18]
lea esp, [esp]
mov edi, dword [eax + 0x10]
mov eax, dword [edi + 0x20]
test eax, eax
lea ebx, [edi + 0x20]
jne 0x41d9a5
cmp dword [edi + 0x1c], 0x10
jb 0x41d998
mov eax, dword [edi + 8]
jmp 0x41d99b
lea eax, [edi + 8]
push 0x50
push eax
mov ecx, ebx
call fcn.00430e90
mov ecx, dword [ebx]
push ecx
mov ecx, dword [0x450b04]
call fcn.004263f0
push str.CDownloadTask
lea ecx, [esp + 0x44]
mov ebp, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [edi + 0x1c], 0x10
mov dword [esp + 0xcc], 0
jb 0x41d9da
mov eax, dword [edi + 8]
jmp 0x41d9dd
lea eax, [edi + 8]
push ebp
push eax
push 0x4409d8
lea edx, [esp + 0x4c]
push edx
lea eax, [esi + 0x27c]
push 0
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x18
lea ecx, [esp + 0x40]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp ebp, 0x1000
mov al, byte [edi + 0x50]
jne 0x41db61
test al, al
jne 0x41dbf5
mov eax, dword [ebx]
mov ecx, dword [0x450b04]
push eax
call fcn.004264d0
test al, al
je 0x41da9d
push str.CDownloadTask
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [edi + 0x1c], 0x10
mov ebp, 1
mov dword [esp + 0xcc], ebp
jb 0x41da5f
mov eax, dword [edi + 8]
jmp 0x41da62
lea eax, [edi + 8]
push eax
push 0x4409c0
lea ecx, [esp + 0x80]
push ecx
lea eax, [esi + 0x27c]
push 0
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x78]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov dword [esp + 0x10], ebp
jmp 0x41daa2
mov ebp, 1
mov edx, dword [ebx]
mov ecx, dword [0x450b04]
push ebp
push edx
call fcn.00426c60
test al, al
je 0x41dbf5
push str.CDownloadTask
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [edi + 0x1c], 0x10
mov dword [esp + 0xcc], 2
jb 0x41dade
mov eax, dword [edi + 8]
jmp 0x41dae1
lea eax, [edi + 8]
push eax
push 0x4409a8
lea eax, [esp + 0x64]
push eax
lea eax, [esi + 0x27c]
push 0
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x5c]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0xb0]
call fcn.00430dd0
lea ecx, [esp + 0x10]
push ecx
push 0
push edi
push 0x426d50
push 0
push 0
mov dword [esp + 0x28], 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x41db4c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xb0]
mov dword [esp + 0x10], ebp
call fcn.00431210
jmp 0x41dbf5
test al, al
jne 0x41dbf5
cmp dword [edi + 0x4c], 6
jae 0x41dbf5
push str.CDownloadTask
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [edi + 0x1c], 0x10
mov dword [esp + 0xcc], 3
jb 0x41db98
mov edi, dword [edi + 8]
jmp 0x41db9b
add edi, 8
push edi
push 0x440994
lea edx, [esp + 0x2c]
push edx
lea eax, [esi + 0x27c]
push 0
push eax
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x14
lea ecx, [esp + 0x24]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 0x22c]
jne 0x41dbe3
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jmp 0x41dbf1
cmp ebp, dword [esp + 0x14]
jbe 0x41dbf5
mov edx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x18]
call fcn.00427370
mov eax, dword [esi + 0x22c]
cmp dword [esp + 0x18], eax
jne 0x41d978
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x20]
mov eax, dword [esi + 0x22c]
cmp ecx, eax
jne 0x41dc41
mov edx, dword [esi + 0x230]
mov ecx, 1
cmp edx, ecx
jb 0x41dca0
mov eax, dword [eax]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], eax
mov ecx, eax
mov edi, dword [ecx + 0x10]
cmp dword [esi + 0x240], edi
je 0x41dc59
mov eax, dword [esi + 0x64]
inc eax
mov dword [esi + 0x240], edi
mov dword [esi + 0x64], eax
mov byte [esi + 0x23d], 0
test edi, edi
je 0x41dceb
mov ecx, dword [edi + 0x4c]
inc ecx
push ebx
mov dword [edi + 0x4c], ecx
call ebp
push str.CDownloadTask
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [edi + 0x40]
mov eax, 0x10
cmp ecx, eax
mov dword [esp + 0xcc], 5
jb 0x41dcf7
mov ecx, dword [edi + 0x2c]
jmp 0x41dcfa
push str.CDownloadTask
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
push 0x44097c
lea ecx, [esp + 0x28]
push ecx
push 0
add esi, 0x27c
push esi
mov dword [esp + 0xdc], 4
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
add esp, 0x10
lea ecx, [esp + 0x24]
mov dword [esp + 0xcc], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
call ebp
mov eax, dword [esp + 0x10]
jmp 0x41de10
lea ecx, [edi + 0x2c]
cmp dword [edi + 0x1c], eax
jb 0x41dd04
mov eax, dword [edi + 8]
jmp 0x41dd07
lea eax, [edi + 8]
mov edx, dword [edi + 0x4c]
push edx
push ecx
push eax
push 0x440960
lea eax, [esp + 0xa4]
push eax
lea ecx, [esi + 0x27c]
push 0
push ecx
call dword [sym.imp.KwLogSvr.dll_void___cdecl_YL_Log_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___char_const__]
or ebx, 0xffffffff
add esp, 0x1c
lea ecx, [esp + 0x94]
mov dword [esp + 0xcc], ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0x44
call sub.MSVCR71.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0xcc], 6
je 0x41dd6f
push esi
push edi
mov ecx, eax
call fcn.00424050
mov dword [esp + 0x14], eax
jmp 0x41dd7b
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0xcc], ebx
mov dword [esp + 0x1c], eax
je 0x41de10
lea eax, [esi + 0x1f8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebp, dword [esi + 0x24]
mov eax, dword [ebp + 4]
lea edi, [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
push ebp
mov ecx, edi
call fcn.00405cf0
push 1
mov ecx, edi
mov ebx, eax
call fcn.0041b3d0
mov dword [ebp + 4], ebx
mov ecx, dword [ebx + 4]
mov dword [ecx], ebx
mov eax, dword [esi + 0x7c]
mov ecx, dword [esi + 0x28]
cmp eax, ecx
ja 0x41ddd1
mov eax, ecx
mov edi, dword [esi + 0x234]
mov edx, dword [esi + 0x68]
mov dword [esi + 0x7c], eax
inc edi
lea eax, [esi + 0x1f8]
inc edx
push eax
mov dword [esi + 0x234], edi
mov dword [esi + 0x68], edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x2a8]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [esi + 0x2a8], eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 1
mov ecx, dword [esp + 0xc4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xc0
ret 4