Function at 0x413fc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4372fe
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push esi
push edi
mov eax, dword [0x446414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00414be0
xor ebx, ebx
push ebx
call fcn.00411880
cmp eax, 3
jne 0x4143dc
push 0x18
mov dword [ebp - 0x24], ebx
call fcn.00420182
add esp, 4
cmp eax, ebx
je 0x4143b8
mov dword [eax], eax
mov dword [ebp - 0x28], eax
mov dword [eax + 4], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], ebx
call fcn.004121a0
push 0xc
mov dword [ebp - 0x30], ebx
call fcn.00420182
mov edi, eax
add esp, 4
mov dword [ebp - 0x10], edi
cmp edi, ebx
je 0x414394
mov dword [edi], edi
mov dword [ebp - 0x34], edi
mov dword [edi + 4], edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x28]
mov esi, dword [eax]
cmp esi, eax
jne 0x414073
cmp dword [ebp - 0x24], ebx
jne 0x4142f5
call fcn.00411bb0
jmp 0x414349
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi]
mov edi, dword [esi + 0xc]
mov edx, dword [esi + 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x60], edx
mov edx, dword [eax + 0x10]
call edx
cmp dword [edi - 4], ebx
lea ecx, [edi - 4]
jl 0x4140a6
cmp eax, dword [edi - 0x10]
jne 0x4140a6
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x4140de
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4142e6
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 4], 2
mov edi, dword [esi + 0x10]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [edi - 4], 0
lea ecx, [edi - 4]
jl 0x414111
cmp eax, dword [edi - 0x10]
jne 0x414111
lea ebx, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x414149
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x4142e6
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add ebx, 0x10
mov dword [ebp - 0x58], ebx
mov byte [ebp - 4], 3
mov edi, dword [esi + 0x14]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
lea ecx, [edi - 4]
xor ebx, ebx
cmp dword [ecx], ebx
jl 0x41417c
cmp eax, dword [edi - 0x10]
jne 0x41417c
lea esi, [edi - 0x10]
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4141b4
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov esi, eax
cmp esi, ebx
je 0x4142e6
mov eax, dword [edi - 0xc]
mov dword [esi + 4], eax
mov eax, dword [edi - 0xc]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [esi + 0x10]
push eax
call fcn.00420016
add esp, 0x10
add esi, 0x10
mov dword [ebp - 0x54], esi
push 0x1c
mov byte [ebp - 4], 4
call fcn.00420182
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41421b
mov dword [edi + 4], ebx
mov dword [edi], vtable.CFileDownloader.0
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [edi + 0xc], eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [edi + 0x10], eax
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [edi + 0x14], eax
mov ebx, edi
lea ecx, [ebp - 0x60]
push ecx
lea edi, [ebx + 8]
mov dword [ebp - 0x18], ebx
call fcn.00412ff0
push 0
push 0
push ebx
push 0x404220
push 0
push 0
call fcn.00420924
mov esi, dword [ebp - 0x10]
add esp, 0x18
lea edx, [ebp - 0x18]
mov dword [ebx + 4], eax
mov eax, dword [esi + 4]
push edx
push eax
push esi
call fcn.00415660
mov ecx, 0x3ffffffe
sub ecx, dword [ebp - 0x30]
cmp ecx, 1
jb 0x4142eb
inc dword [ebp - 0x30]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x414293
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4142b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4142d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [ebp - 0x14], ecx
jne 0x414070
mov edi, esi
jmp 0x414056
call fcn.00402040
push str.list_T__too_long
call fcn.0041f284
lea ebx, [ebp - 0x28]
call fcn.00412dc0
mov esi, dword [ebp - 0x10]
mov edi, dword [esi]
cmp edi, esi
je 0x414325
mov ebx, dword [edi + 8]
mov edx, dword [ebx + 4]
mov edi, dword [edi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebx]
mov edx, dword [eax]
push 1
mov ecx, ebx
call edx
cmp edi, esi
jne 0x414306
mov eax, dword [esi]
mov dword [esi], esi
mov dword [esi + 4], esi
cmp eax, esi
je 0x414347
mov esi, dword [eax]
push eax
call fcn.0041fcdf
add esp, 4
mov eax, esi
cmp esi, dword [ebp - 0x10]
jne 0x414330
mov edi, dword [ebp - 0x10]
jmp 0x414349
mov edi, esi
mov eax, dword [edi]
mov dword [edi], edi
mov dword [edi + 4], edi
cmp eax, edi
je 0x414365
mov esi, dword [eax]
push eax
call fcn.0041fcdf
add esp, 4
mov eax, esi
cmp esi, edi
jne 0x414354
push edi
call fcn.0041fcdf
add esp, 4
lea ebx, [ebp - 0x28]
call fcn.00412dc0
mov eax, dword [ebp - 0x28]
push eax
call fcn.0041fcdf
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1c], ebx
call fcn.0042028a
push 0x4425bc
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x40], vtable.std::bad_alloc.0
call fcn.0042254a
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x18], ebx
call fcn.0042028a
push 0x4425bc
lea ecx, [ebp - 0x5c]
push ecx
mov dword [ebp - 0x5c], vtable.std::bad_alloc.0
call fcn.0042254a
cmp eax, 2
jne 0x4146ea
call fcn.00414e20
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov edx, dword [section..data]
add eax, 0x10
mov dword [ebp - 0x5c], eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
mov edx, dword [section..data]
add eax, 0x10
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x54], eax
mov dword [ebp - 4], 5
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x60], ebx
call fcn.00405ed0
lea edi, [ebp - 0x5c]
mov byte [ebp - 4], 6
call fcn.00401c70
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41446d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test byte [0x449000], 1
jne 0x414497
or dword [0x449000], 1
mov byte [ebp - 4], 7
call fcn.00401000
push 0x437470
call fcn.004204a6
add esp, 4
mov byte [ebp - 4], 5
push 0x449004
mov ecx, 0x440278
lea edx, [ebp - 0x1c]
call fcn.00401ad0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [0x44900c]
jne 0x4144b8
xor ecx, ecx
jmp 0x4144bb
mov ecx, dword [eax + 0x10]
lea edx, [ebp - 0x10]
push edx
call fcn.00401bd0
mov bl, 8
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x10]
push 0x2f
push eax
call fcn.00421fd4
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
jne 0x4144e3
or eax, 0xffffffff
jmp 0x4144e7
sub eax, ecx
sar eax, 1
mov edx, dword [ecx - 0xc]
dec edx
cmp eax, edx
jne 0x414531
mov eax, dword [ecx - 0xc]
lea eax, [eax - 1]
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x10]
call fcn.0040eaf0
lea edi, [ebp - 0x10]
mov byte [ebp - 4], 9
call fcn.00401c70
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41452e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x5c]
push edx
push ecx
push 0x440280
lea edi, [ebp - 0x54]
call fcn.00404180
add esp, 0xc
lea esi, [ebp - 0x7c]
call fcn.00414870
lea eax, [ebp - 0x60]
push eax
lea edi, [ebp - 0x74]
mov byte [ebp - 4], 0xa
call fcn.00412ff0
push 0
push 0
mov ecx, esi
push ecx
push 0x404220
push 0
push 0
call fcn.00420924
add esp, 0x18
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x78], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x78]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
mov dword [ebp - 0x78], 0
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040dbb0
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x5c]
mov edx, dword [eax]
push ecx
push edx
push 0x43b32c
lea edi, [ebp - 0x14]
call fcn.00404180
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4145f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x414678
push eax
call ebx
push 0
mov ecx, edi
lea esi, [ebp - 0x44]
call fcn.00404640
mov ecx, dword [ebp - 0x40]
push 2
push 0
push ecx
call fcn.00420c6b
mov edx, dword [ebp - 0x40]
add esp, 0xc
push edx
call fcn.00420e7b
add esp, 4
push 0
mov esi, eax
mov eax, dword [ebp - 0x40]
push 0
push eax
call fcn.00420c6b
add esp, 0xc
lea ecx, [ebp - 0x44]
call fcn.004047b0
cmp esi, 0x400
ja 0x414678
call fcn.00411bb0
push 1
call fcn.00402ec0
push eax
call fcn.00402f30
add edi, 0xfffffff0
mov byte [ebp - 4], 0xa
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414698
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
lea esi, [ebp - 0x74]
call fcn.00412140
mov eax, dword [ebp - 0x78]
push eax
mov dword [ebp - 0x7c], vtable.CThreadTask.0
call ebx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x60]
call fcn.00412140
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x414857
lea esi, [ebp - 0x50]
call fcn.00414870
lea esi, [ebp - 0x60]
mov dword [ebp - 4], 0xd
call fcn.00412750
mov byte [ebp - 4], 0xe
mov edx, str.YSUpdate.exe
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x60], ebx
call fcn.00401ce0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040e690
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x5c]
mov eax, dword [eax]
push edx
push eax
push 0x440280
lea edi, [ebp - 0x54]
call fcn.00404180
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414768
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
push ecx
lea edi, [ebp - 0x48]
call fcn.00412ff0
push ebx
push ebx
lea edx, [ebp - 0x50]
push edx
push 0x404220
push ebx
push ebx
call fcn.00420924
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add esp, 0x18
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x4c], eax
call esi
mov eax, dword [ebp - 0x4c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
mov edx, str.YSUpdateChecker.dll
lea edi, [ebp - 0x5c]
mov dword [ebp - 0x4c], 0
call fcn.00401ce0
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040e690
add esp, 4
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x5c]
mov eax, dword [eax]
push edx
push eax
push 0x440280
lea edi, [ebp - 0x54]
call fcn.00404180
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414801
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x60]
push ecx
lea edi, [ebp - 0x48]
call fcn.00412ff0
push 0
push 0
lea edx, [ebp - 0x50]
push edx
push 0x404220
push 0
push 0
call fcn.00420924
add esp, 0x18
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x4c], eax
call esi
mov eax, dword [ebp - 0x4c]
push eax
call ebx
lea esi, [ebp - 0x60]
mov dword [ebp - 0x4c], 0
call fcn.00412140
mov esi, edi
call fcn.00412140
mov ecx, dword [ebp - 0x4c]
push ecx
mov dword [ebp - 0x50], vtable.CThreadTask.0
call ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret