Function at 0x40b230
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x44f78a
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.00408d70
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.00408d70
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.00408d70
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 + 0x148]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.CheckFileAddr
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.00408d70
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], 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.00408d70
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 + 0x150]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.ForceCheckFile
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.00408d70
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 + 0x154]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.homepage
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.00408d70
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 + 0x158]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.notice
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.00408d70
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 edx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [edx], eax
lea eax, [esi + 0x15c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.DelFileList
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.00408d70
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 + 0x160]
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.KillList
mov dword [esp + 0x54], 0x12
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push str.UpdataSet
mov byte [esp + 0x58], 0x13
call fcn.00405510
mov ecx, esi
mov dword [esp + 0x54], edi
call fcn.00408d70
mov eax, dword [ebx]
push eax
call fcn.00439b5c
fstp qword [esp + 0x30]
push 0x454c28
call fcn.00439b5c
fstp qword [esp + 0x3c]
add esp, 8
push 0x454c28
push 0x3ff
mov ecx, esi
call fcn.0041aa44
mov ecx, eax
call fcn.0041ab46
mov ebx, dword [ebx]
push ebx
push 0x3fe
mov ecx, esi
call fcn.0041aa44
mov ecx, eax
call fcn.0041ab46
fld qword [esp + 0x34]
fcomp qword [esp + 0x2c]
fnstsw ax
test ah, 5
jp 0x40b76b
push 0x454c24
lea ecx, [esp + 0x28]
call fcn.00405510
mov eax, dword [eax]
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b6c0
push 0x80004005
call fcn.00401010
mov ebp, dword [ebp]
push eax
push ebp
call fcn.004383b9
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 0x40b6f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b717
mov ecx, dword [esp + 0x4c]
push ecx
mov ecx, esi
call fcn.0040ad50
test eax, eax
je 0x40bbce
push 0
mov ecx, esi
call fcn.0041356e
jmp 0x40bbce
push 0x454c10
lea ecx, [esp + 0x28]
call fcn.00405510
mov eax, dword [eax]
push 4
push 0x454c04
push eax
mov ecx, esi
mov dword [esp + 0x50], 0x14
call fcn.00415c92
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 0x40b765
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b709
jmp 0x40b6f5
call fcn.0041b4c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40b785
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], 0x15
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], 0x16
call fcn.00405510
push ecx
mov ecx, esp
mov dword [esp + 0x34], esp
push str.IPLIST
mov byte [esp + 0x58], 0x17
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x15
call fcn.00408d70
mov edx, dword [esp + 0x1c]
push edx
call fcn.004384d3
add esp, 4
test eax, eax
jle 0x40bb81
mov edi, 1
mov ebp, 0x4704ec
mov dword [esp + 0x18], 0x470588
push 0x4fc
call fcn.0041343b
add esp, 4
mov dword [esp + 0x4c], eax
test eax, eax
mov byte [esp + 0x44], 0x18
je 0x40b840
mov ecx, eax
call fcn.00404680
mov byte [esp + 0x44], 0x15
call fcn.0041b4c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b6b6
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], 0x19
call fcn.0041b4c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b6b6
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], 0x1a
call fcn.0041b4c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b6b6
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], 0x1b
call fcn.0041b4c9
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x40b6b6
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], 0x1c
call fcn.004086b0
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], 0x1d
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], 0x1e
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1c
call fcn.00408d70
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.004086b0
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], 0x1f
call fcn.00404ff0
add eax, 0x10
mov dword [ebx], eax
mov byte [esp + 0x54], 0x20
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPLIST
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1c
call fcn.00408d70
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.004086b0
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, [esp + 0x24]
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 ecx, dword [esp + 0x38]
add eax, 0x10
mov dword [ecx], eax
mov ecx, esp
mov dword [esp + 0x38], esp
push str.IPLIST
mov byte [esp + 0x58], 0x22
call fcn.00405510
mov ecx, esi
mov byte [esp + 0x54], 0x1c
call fcn.00408d70
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push edx
call fcn.0041ab46
mov ecx, dword [esp + 0x18]
push 5
call fcn.0041ac03
lea eax, [esp + 0x14]
push eax
mov ecx, ebp
mov dword [ebp - 4], 0
call fcn.00405310
lea ecx, [esp + 0x20]
push ecx
lea ecx, [ebp + 8]
call fcn.00405310
lea edx, [esp + 0x24]
push edx
lea ecx, [ebp + 4]
call fcn.00405310
push 0
push 0
lea eax, [edi - 1]
push eax
push 0x408fe0
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov byte [esp + 0x44], 0x1b
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bae9
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x44], 0x1a
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb0e
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], 0x19
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb33
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], 0x15
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bb58
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, 0x10
call fcn.004384d3
lea edx, [edi - 1]
add esp, 4
cmp edx, eax
jl 0x40b81f
or edi, 0xffffffff
mov eax, dword [esi + 0x158]
push 0
push 0
push 0
push 0
push 0
push eax
lea ecx, [esi + 0x264]
call fcn.0041e58b
push 0x454bac
lea ecx, [esi + 0x164]
call fcn.0040eb70
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 0x40bbce
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