Function at 0x40b260
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44f7fa
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b9d8]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov edi, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [edi], eax
lea eax, [esi + 0x13c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpExeUrl
mov dword [esp + 0x54], 0
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 1
call fcn.00405510
or edi, 0xffffffff
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov ebx, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
lea ebx, [esi + 0x140]
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.Version
mov dword [esp + 0x54], 2
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 3
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov ebp, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
lea ebp, [esi + 0x144]
push ebp
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CompelUp
mov dword [esp + 0x54], 4
call fcn.00405510
mov byte [esp + 0x50], 5
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0x14c]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CheckDirName
mov dword [esp + 0x54], 6
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 7
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0x150]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.ForceCheckFile
mov dword [esp + 0x54], 8
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 9
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x2c]
add esp, 4
add eax, 0x10
mov dword [ecx], eax
mov dword [esp + 0x48], 0xa
lea edx, [esi + 0x158]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.homepage
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 0xb
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea eax, [esi + 0x15c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.notice
mov dword [esp + 0x54], 0xc
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 0xd
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404ff0
mov edx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [edx], eax
lea eax, [esi + 0x160]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.DelFileList
mov dword [esp + 0x54], 0xe
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 0xf
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [esi + 0x138]
push ecx
mov dword [esp + 0x2c], esp
mov dword [esp + 0x28], esp
sub eax, 0x10
push eax
call fcn.00404ff0
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
lea edx, [esi + 0x164]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.KillList
mov dword [esp + 0x54], 0x10
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 0x11
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d90
mov eax, dword [ebx]
push eax
call fcn.00439bcc
fstp qword [esp + 0x30]
push 0x454c38
call fcn.00439bcc
fstp qword [esp + 0x3c]
add esp, 8
push 0x454c38
push 0x3ff
mov ecx, esi
call fcn.0041aab4
mov ecx, eax
call fcn.0041abb6
mov ebx, dword [ebx]
push ebx
push 0x3fe
mov ecx, esi
call fcn.0041aab4
mov ecx, eax
call fcn.0041abb6
fld qword [esp + 0x34]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x40b736
push 0x454c34
lea ecx, [esp + 0x28]
call fcn.00405510
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b68b
push 0x80004005
call fcn.00401010
mov ebp, dword [ebp]
push eax
push ebp
call fcn.00438429
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b6e2
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0040ad80
test eax, eax
je 0x40bc2e
push 0
mov ecx, esi
call fcn.004135de
jmp 0x40bc2e
push 0x454c20
lea ecx, [esp + 0x28]
call fcn.00405510
mov eax, dword [eax]
push 4
push 0x454c14
push eax
mov ecx, esi
mov dword [esp + 0x50], 0x12
call fcn.00415d02
cmp eax, 6
mov eax, dword [esp + 0x24]
sete bl
add eax, 0xfffffff0
mov dword [esp + 0x44], edi
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x40b730
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b6d4
jmp 0x40b6c0
call fcn.0041b539
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b750
push 0x80004005
call fcn.00401010
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x138]
push ecx
sub eax, 0x10
mov dword [esp + 0x50], esp
mov ebx, esp
push eax
mov dword [esp + 0x4c], 0x13
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
lea ecx, [esp + 0x20]
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.ServerCount
mov byte [esp + 0x54], 0x14
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.IPLIST
mov byte [esp + 0x58], 0x15
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x13
call fcn.00408d90
mov edx, dword [esp + 0x1c]
push edx
call fcn.00438543
add esp, 4
test eax, eax
jle 0x40bbe1
mov edi, 1
mov ebp, 0x470514
mov dword [esp + 0x18], 0x4705d8
push 0x4fc
call fcn.004134ab
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x44], 0x16
je 0x40b80b
mov ecx, eax
call fcn.00404680
mov byte [esp + 0x44], 0x13
call fcn.0041b539
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b681
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x44], 0x17
call fcn.0041b539
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b681
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x44], 0x18
call fcn.0041b539
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b681
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov byte [esp + 0x44], 0x19
call fcn.0041b539
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b681
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x4c], eax
push edi
lea ecx, [esp + 0x50]
push str.ServerName_i
push ecx
mov byte [esp + 0x50], 0x1a
call fcn.004086d0
mov eax, dword [esi + 0x138]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x2c], esp
mov ebx, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x18]
push edx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
mov byte [esp + 0x54], 0x1b
call fcn.00404ff0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x44], esp
push str.IPLIST
mov byte [esp + 0x58], 0x1c
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1a
call fcn.00408d90
push 0
push 0x4541f2
lea ecx, [esp + 0x54]
call fcn.004051c0
push edi
lea eax, [esp + 0x50]
push str.ServerAddr_i
push eax
call fcn.004086d0
mov eax, dword [esi + 0x138]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x28]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
mov byte [esp + 0x54], 0x1d
call fcn.00404ff0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x54], 0x1e
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPLIST
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1a
call fcn.00408d90
push 0
push 0x4541f2
lea ecx, [esp + 0x54]
call fcn.004051c0
push edi
lea edx, [esp + 0x50]
push str.port_i
push edx
call fcn.004086d0
mov eax, dword [esi + 0x138]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x54]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
mov byte [esp + 0x54], 0x1f
call fcn.00404ff0
add eax, 0x10
mov dword [ebx], eax
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPLIST
mov byte [esp + 0x58], 0x20
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1a
call fcn.00408d90
push 0
push 0x4541f2
lea ecx, [esp + 0x54]
call fcn.004051c0
push edi
lea ecx, [esp + 0x50]
push str.CheckFileAddr_i
push ecx
call fcn.004086d0
mov eax, dword [esi + 0x138]
add esp, 8
sub eax, 0x10
mov dword [esp + 0x38], esp
mov ebx, esp
push eax
call fcn.00404ff0
add eax, 0x10
add esp, 4
mov dword [ebx], eax
mov ebx, dword [esp + 0x50]
lea eax, [esi + 0x148]
push eax
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x38], esp
mov dword [esp + 0x34], esp
push ebx
mov byte [esp + 0x54], 0x21
call fcn.00404ff0
mov edx, dword [esp + 0x38]
add eax, 0x10
mov dword [edx], eax
mov byte [esp + 0x54], 0x22
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPLIST
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1a
call fcn.00408d90
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
call fcn.0041abb6
mov ecx, dword [esp + 0x18]
push 5
call fcn.0041ac73
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
mov dword [ebp - 4], 0
call fcn.00405310
lea edx, [esp + 0x20]
push edx
lea ecx, [ebp + 8]
call fcn.00405310
lea eax, [esp + 0x24]
push eax
lea ecx, [ebp + 4]
call fcn.00405310
lea eax, [esi + 0x148]
push eax
lea ecx, [ebp + 0xc]
call fcn.00405310
push 0
push 0
lea ecx, [edi - 1]
push ecx
push 0x409000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esp + 0x44], 0x19
lea edx, [ebx + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40bb49
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x18
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x17
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x13
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbb8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x4fc
push ecx
add edi, 1
add ebp, 0x14
call fcn.00438543
lea edx, [edi - 1]
add esp, 4
cmp edx, eax
jl 0x40b7ea
or edi, 0xffffffff
mov eax, dword [esi + 0x15c]
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 0x268]
call fcn.0041e5fb
push 0x454bac
lea ecx, [esi + 0x168]
call fcn.0040ebe0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x44], edi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x40bc2e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 4