Function at 0x40be70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53039a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x58deec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov edi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [esi + 0xb8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.UpExeUrl
mov dword [ebp - 4], 0
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 1
call fcn.00405830
or ebx, 0xffffffff
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov edi, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea edi, [esi + 0xbc]
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x541580
mov dword [ebp - 4], 2
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 3
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov ebx, esp
push eax
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [ebx], eax
lea ebx, [esi + 0xc0]
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.CompelUp
mov dword [ebp - 4], 4
call fcn.00405830
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xc4]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.CheckFileAddr
mov dword [ebp - 4], 6
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 7
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xc8]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.CheckDirName
mov dword [ebp - 4], 8
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 9
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov dword [ebp - 4], 0xa
lea edx, [esi + 0xcc]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.ForceCheckFile
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0xb
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xd0]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.homepage
mov dword [ebp - 4], 0xc
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0xd
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xd4]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x541534
mov dword [ebp - 4], 0xe
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0xf
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
sub eax, 0x10
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xe4]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.more
mov dword [ebp - 4], 0x10
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0x11
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xe8]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.Tnotce
mov dword [ebp - 4], 0x12
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0x13
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea eax, [esi + 0xd8]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.notice
mov dword [ebp - 4], 0x14
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
mov byte [ebp - 4], 0x15
push str.UpdataSet
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov edx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [edx], eax
lea eax, [esi + 0xdc]
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.DelFileList
mov dword [ebp - 4], 0x16
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0x17
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x30], esp
push eax
call fcn.00405390
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0xe0]
push edx
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.KillList
mov dword [ebp - 4], 0x18
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push str.UpdataSet
mov byte [ebp - 4], 0x19
call fcn.00405830
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.00409970
mov eax, dword [edi]
push eax
call fcn.00517b82
fstp qword [ebp - 0x38]
push str.20.0
call fcn.00517b82
fstp qword [ebp - 0x40]
add esp, 8
push str.20.0
push 0x3ff
mov ecx, esi
call fcn.0041dcd4
mov ecx, eax
call fcn.0041ddea
mov edi, dword [edi]
push edi
push 0x3fe
mov ecx, esi
call fcn.0041dcd4
mov ecx, eax
call fcn.0041ddea
fld qword [ebp - 0x40]
fcomp qword [ebp - 0x38]
fnstsw ax
test ah, 5
jp 0x40c4b2
push 0x5414f8
lea ecx, [ebp - 0x30]
call fcn.00405830
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c3f4
push 0x80004005
call fcn.00401010
mov ebx, dword [ebx]
push eax
push ebx
call fcn.0051628c
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c424
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c458
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0040b9d0
test eax, eax
je 0x40cbc1
push 0
mov ecx, esi
call fcn.00415164
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5414e4
lea ecx, [ebp - 0x30]
call fcn.00405830
mov eax, dword [eax]
push 4
push 0x5414d8
push eax
mov ecx, esi
mov dword [ebp - 4], 0x1a
call fcn.004188ff
cmp eax, 6
mov eax, dword [ebp - 0x30]
sete bl
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c4a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40c43b
jmp 0x40c428
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40c4cc
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0xb4]
push ecx
sub eax, 0x10
mov dword [ebp + 8], esp
mov edi, esp
push eax
mov dword [ebp - 4], 0x1b
call fcn.00405390
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea ecx, [ebp - 0x1c]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
push str.ServerCount
mov byte [ebp - 4], 0x1c
call fcn.00405830
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push str.IPLIST
mov byte [ebp - 4], 0x1d
call fcn.00405830
mov ecx, esi
mov byte [ebp - 4], 0x1b
call fcn.00409970
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005163a3
add esp, 4
test eax, eax
jle 0x40cb6b
mov dword [ebp - 0x14], 1
mov dword [ebp + 8], 0x592dbc
mov dword [ebp - 0x24], 0x592e58
nop
push 0x53c
call fcn.00414ff2
add esp, 4
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x1e
test eax, eax
je 0x40c57f
mov ecx, eax
call fcn.00404bc0
mov byte [ebp - 4], 0x1b
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3ea
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x1f
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3ea
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x20
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3ea
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x21
call fcn.0041e837
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40c3ea
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push str.ServerName_i
push edx
mov byte [ebp - 4], 0x22
call fcn.00401f90
mov edi, dword [esi + 0xb4]
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esp, 8
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x20], esp
call edx
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x40c666
cmp eax, dword [edi - 0x10]
jne 0x40c666
lea ebx, [edi - 0x10]
mov eax, 1
lock xadd dword [edx], eax
jmp 0x40c697
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cbd5
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
mov edx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [edx], ebx
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov byte [ebp - 4], 0x23
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x40c6d7
cmp eax, dword [edi - 0x10]
jne 0x40c6d7
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40c708
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cbd5
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
mov edx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [edx], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.IPLIST
mov byte [ebp - 4], 0x24
call fcn.00405830
mov ecx, esi
mov byte [ebp - 4], 0x22
call fcn.00409970
push 0
push 0x5409a6
lea ecx, [ebp - 0x10]
call fcn.00405540
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push str.ServerAddr_i
push ecx
call fcn.00401f90
mov edi, dword [esi + 0xb4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 8
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x40c785
cmp eax, dword [edi - 0x10]
jne 0x40c785
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40c7b6
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cbd5
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
mov edx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [edx], ebx
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x30]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
mov byte [ebp - 4], 0x25
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x40c7f6
cmp eax, dword [edi - 0x10]
jne 0x40c7f6
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40c827
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cbd5
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
mov edx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [edx], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.IPLIST
mov byte [ebp - 4], 0x26
call fcn.00405830
mov ecx, esi
mov byte [ebp - 4], 0x22
call fcn.00409970
push 0
push 0x5409a6
lea ecx, [ebp - 0x10]
call fcn.00405540
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push str.port_i
push ecx
call fcn.00401f90
mov edi, dword [esi + 0xb4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add esp, 8
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x20], esp
call eax
cmp dword [edi - 4], 0
lea edx, [edi - 4]
jl 0x40c8a4
cmp eax, dword [edi - 0x10]
jne 0x40c8a4
lea ebx, [edi - 0x10]
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40c8d5
mov ecx, dword [edi - 0xc]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
je 0x40cbd5
mov eax, dword [edi - 0xc]
mov dword [ebx + 4], eax
mov eax, dword [edi - 0xc]
inc eax
push eax
push edi
push eax
lea ecx, [ebx + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
mov edx, dword [ebp - 0x20]
add ebx, 0x10
mov dword [edx], ebx
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
add edi, 0xfffffff0
mov byte [ebp - 4], 0x27
mov dword [ebp - 0x34], esp
mov ebx, esp
mov dword [ebp - 0x18], edi
call eax
cmp dword [edi + 0xc], 0
lea edx, [edi + 0xc]
jl 0x40c916
cmp eax, dword [edi]
jne 0x40c916
mov ecx, 1
lock xadd dword [edx], ecx
jmp 0x40c94f
mov edx, dword [eax]
mov edx, dword [edx]
mov ecx, edi
mov ecx, dword [ecx + 4]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
je 0x40cbd5
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
mov dword [edi + 4], eax
mov eax, dword [ecx + 4]
inc eax
push eax
add ecx, 0x10
push ecx
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00515b96
add esp, 0x10
add edi, 0x10
mov dword [ebx], edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.IPLIST
mov byte [ebp - 4], 0x28
call fcn.00405830
mov ecx, esi
mov byte [ebp - 4], 0x22
call fcn.00409970
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
push ebx
mov ecx, edi
call fcn.0041ddea
push 5
mov ecx, edi
call fcn.0041deb5
mov eax, dword [ebp + 8]
mov dword [eax - 4], 0
mov edi, dword [eax]
lea ecx, [ebx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x20], ecx
cmp ecx, edi
je 0x40c9ec
cmp dword [edi + 0xc], 0
jl 0x40c9df
mov edx, ecx
mov eax, dword [edx]
cmp eax, dword [edi]
jne 0x40c9df
push ecx
call fcn.00405390
mov ebx, eax
add esp, 4
lea eax, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x40c9d5
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [ebp + 8]
add ebx, 0x10
mov dword [eax], ebx
jmp 0x40c9ec
mov eax, dword [ebx - 0xc]
mov ecx, dword [ebp + 8]
push eax
push ebx
call fcn.00405540
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
mov edi, dword [ebx + 8]
lea eax, [ecx - 0x10]
sub edi, 0x10
mov dword [ebp - 0x3c], eax
cmp eax, edi
je 0x40ca4b
cmp dword [edi + 0xc], 0
jl 0x40ca3e
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x40ca3e
push eax
call fcn.00405390
mov dword [ebp - 0x34], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca33
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x10
mov dword [ebx + 8], ecx
jmp 0x40ca4b
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebx + 8]
call fcn.00405540
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x30]
mov edi, dword [ecx + 4]
lea ebx, [eax - 0x10]
sub edi, 0x10
cmp ebx, edi
je 0x40caad
cmp dword [edi + 0xc], 0
jl 0x40ca9d
mov edx, dword [ebx]
cmp edx, dword [edi]
jne 0x40ca9d
push ebx
call fcn.00405390
mov dword [ebp - 0x34], eax
add esp, 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40ca8f
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp + 8]
add ecx, 0x10
mov dword [eax + 4], ecx
jmp 0x40caad
mov ecx, dword [eax - 0xc]
push ecx
mov ecx, dword [ebp + 8]
push eax
add ecx, 4
call fcn.00405540
mov edi, dword [ebp - 0x14]
push 0
push 0
lea edx, [edi - 1]
push edx
push 0x409bf0
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 0x21
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40caea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 0x20
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0x1f
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb27
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [ebp - 0x20]
mov byte [ebp - 4], 0x1b
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cb47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x1c]
add dword [ebp - 0x24], 0x53c
add dword [ebp + 8], 0x10
inc edi
push ecx
mov dword [ebp - 0x14], edi
call fcn.005163a3
dec edi
add esp, 4
cmp edi, eax
jl 0x40c560
mov eax, dword [esi + 0xd8]
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 0x22c]
call fcn.00423332
push 0
lea ecx, [esi + 0x4f0]
call fcn.0041deb5
mov ecx, esi
call fcn.00407cf0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cbc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.00401a90
int3