Function at 0x418270
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43a5b2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e8
mov eax, dword [0x44e7a0]
push ebx
push esi
push edi
mov dword [esp + 0x18], ecx
push str.CDownloadManager
lea ecx, [esp + 0x34]
mov dword [esp + 0x4f0], 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__]
mov eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x500], 0
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 esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
lea eax, [esi + 0x50]
push eax
mov eax, dword [esi]
lea ebx, [esi + 0xc]
push ebx
push ecx
push edx
push eax
push str.NewDownloadTask__Fid:__u__u__NumPacket:_u__WinName:_s__FileName:_s
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x68]
push 0
push edx
mov byte [esp + 0x520], 1
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, 0x24
lea ecx, [esp + 0x4c]
mov byte [esp + 0x4fc], 0
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 + 0x30]
mov dword [esp + 0x4fc], 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 [esi]
mov ecx, dword [esi + 4]
mov dword [esp + 0x2d8], eax
mov dword [esp + 0x2dc], ecx
xor eax, eax
mov ecx, 0x80
lea edi, [esp + 0x2e0]
rep stosd dword es:[edi], eax
lea eax, [esi + 4]
xor edx, edx
push eax
mov dword [esp + 0x24], edx
push esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x2c], edx
call fcn.00430db0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x17], 0
call fcn.00417400
mov edi, eax
test edi, edi
jne 0x418a0f
lea ecx, [esp + 0x1c8]
call fcn.0042c0a0
mov edx, dword [esp + 0x2dc]
mov eax, dword [esp + 0x2d8]
lea ecx, [esp + 0x2d8]
push ecx
mov ecx, dword [0x4507f4]
push edx
push eax
mov dword [esp + 0x508], 2
call fcn.00425ae0
test al, al
je 0x418785
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x20], edi
call fcn.00416e00
test al, al
je 0x4185c6
push str.CDownloadManager
lea ecx, [esp + 0x50]
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 [str.KTLog.txt]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x500], 3
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 eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esp + 0x2e0]
push edx
push eax
push ecx
push str.NewDownloadTask__Fid:__u__u_
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x44]
push edi
push eax
mov byte [esp + 0x518], 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, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0x4fc], 3
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 + 0x4c]
mov byte [esp + 0x4fc], 2
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 edx, dword [esi + 4]
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
mov eax, 0x64
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xa0], ecx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x1c]
push ecx
sub esp, 0x1c
mov dword [esp + 0xc8], edx
lea edx, [esp + 0x304]
xor esi, esi
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov dword [esp + 0xd0], 0xe
mov dword [esp + 0x40], esi
mov dword [esp + 0x50], esi
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__]
call fcn.004306f0
mov eax, dword [esp + 0x3c]
push 0x103
lea ecx, [esp + 0x308]
push ecx
lea edx, [esp + 0xf0]
push edx
mov dword [esp + 0xf0], eax
call dword [sym.imp.MSVCR71.dll_strncpy]
push ebx
push 0x128
lea eax, [esp + 0xd8]
push eax
push 3
call fcn.00430650
add esp, 0x40
push str.CDownloadManager
lea ecx, [esp + 0x50]
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 [str.KTLog.txt]
push ecx
lea ecx, [esp + 0x34]
mov byte [esp + 0x500], 5
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 str.NewDownloadTask_
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x38]
push esi
push eax
mov byte [esp + 0x50c], 6
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 + 0x30]
mov byte [esp + 0x4fc], 5
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 + 0x4c]
mov byte [esp + 0x4fc], 2
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
push 0x128
lea ecx, [esp + 0xa8]
push ecx
push 3
mov dword [esp + 0xb8], 4
call fcn.00430650
add esp, 0x10
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x4fc], 0xffffffff
call fcn.004181a0
jmp 0x418a8b
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x418763
push str.CDownloadManager
lea ecx, [esp + 0x50]
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 edx, dword [str.KTLog.txt]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x500], 7
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 [esi + 4]
mov edx, dword [esi]
push edi
lea eax, [esp + 0x2e4]
push eax
push ecx
push edx
push 0x43ff60
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x48]
push 0
push ecx
mov byte [esp + 0x51c], 8
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, 0x20
lea ecx, [esp + 0x30]
mov byte [esp + 0x4fc], 7
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 + 0x4c]
mov byte [esp + 0x4fc], 2
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 edx, dword [esi]
xor eax, eax
mov ecx, 0x4a
lea edi, [esp + 0xa0]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 4]
push 0x103
lea ecx, [esp + 0x2e4]
mov dword [esp + 0xa4], edx
push ecx
lea edx, [esp + 0xcc]
push edx
mov dword [esp + 0xb0], eax
call dword [sym.imp.MSVCR71.dll_strncpy]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
push ebx
push 0x128
lea edx, [esp + 0xb4]
push edx
push 3
mov dword [esp + 0xcc], eax
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xc4], 0xe
mov dword [esp + 0xc8], eax
call fcn.00430650
add esp, 0x1c
push str.CDownloadManager
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], 1
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 eax, dword [str.KTLog.txt]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x500], 9
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 str.NewDownloadTask_
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x38]
push 0
push edx
mov byte [esp + 0x50c], 0xa
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
mov byte [esp + 0x4fc], 9
lea ecx, [esp + 0x30]
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 + 0x4c]
mov byte [esp + 0x4fc], 2
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
push 0x128
lea eax, [esp + 0xa8]
push eax
push 3
mov dword [esp + 0xb8], 5
call fcn.00430650
add esp, 0x10
lea ecx, [esp + 0x2e0]
push ecx
lea ecx, [esp + 0x258]
mov byte [esp + 0x2c4], 1
call dword [0x43d1b0]
jmp 0x418970
push str.CDownloadManager
lea ecx, [esp + 0x50]
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 edx, dword [str.KTLog.txt]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x500], 0xb
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 eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
push 0x43ff2c
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x40]
push 0
push eax
mov byte [esp + 0x514], 0xc
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 + 0x30]
mov byte [esp + 0x4fc], 0xb
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 + 0x4c]
mov byte [esp + 0x4fc], 2
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 eax, [esi + 0x50]
mov byte [esp + 0x2c0], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x418808
sub eax, edx
mov dword [esp + 0x28], eax
jne 0x4188d6
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x24]
call fcn.00430d20
mov edi, eax
push 0x43d3cc
lea edx, [esp + 0x50]
push 0x450830
push edx
mov byte [esp + 0x508], 0xd
call fcn.00401fd0
push edi
push eax
lea eax, [esp + 0x44]
push eax
mov byte [esp + 0x514], 0xe
call fcn.00401ed0
lea ecx, [esi + 0x154]
push ecx
push eax
lea edx, [esp + 0x88]
push edx
mov byte [esp + 0x520], 0xf
call fcn.00401fd0
add esp, 0x24
push eax
lea ecx, [esp + 0x258]
mov byte [esp + 0x500], 0x10
call dword [0x43d1c4]
lea ecx, [esp + 0x68]
mov byte [esp + 0x4fc], 0xf
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 + 0x30]
mov byte [esp + 0x4fc], 0xe
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 + 0x4c]
mov byte [esp + 0x4fc], 0xd
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 + 0x84]
jmp 0x418962
push 0x43d3cc
lea eax, [esp + 0x34]
push 0x450830
push eax
call fcn.00401fd0
lea ecx, [esi + 0x50]
push ecx
push eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esp + 0x514], 0x11
call fcn.00401fd0
lea edx, [esi + 0x154]
push edx
push eax
lea eax, [esp + 0xa4]
push eax
mov byte [esp + 0x520], 0x12
call fcn.00401fd0
add esp, 0x24
push eax
lea ecx, [esp + 0x258]
mov byte [esp + 0x500], 0x13
call dword [0x43d1c4]
lea ecx, [esp + 0x84]
mov byte [esp + 0x4fc], 0x12
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 + 0x68]
mov byte [esp + 0x4fc], 0x11
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 + 0x30]
mov byte [esp + 0x4fc], 2
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 ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x4c]
mov dword [esp + 0x1c8], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x27c], ecx
push ebx
lea ecx, [esp + 0x284]
mov dword [esp + 0x1d0], edx
mov dword [esp + 0x274], eax
call dword [0x43d1b0]
push ebx
lea ecx, [esp + 0x34]
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__]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2a4]
mov byte [esp + 0x504], 0x14
call fcn.00417b70
lea ecx, [esp + 0x30]
mov byte [esp + 0x4fc], 2
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 + 0x1c8]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00417f90
mov cl, byte [esp + 0x13]
test cl, cl
je 0x418a03
mov byte [eax + 0x274], 1
mov ecx, eax
call fcn.00422dc0
jmp 0x4185aa
push ebx
lea ecx, [edi + 0x174]
call dword [0x43d1b0]
lea esi, [edi + 0x19c]
push esi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x500], 0x15
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__]
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x190]
mov byte [esp + 0x504], 0x16
call fcn.00417b70
lea ecx, [esp + 0x68]
mov byte [esp + 0x4fc], 0x15
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 esi
mov dword [esp + 0x500], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.0041c420
mov ecx, dword [esp + 0x4f4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4ec]
mov al, 1
call fcn.00437d67
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4