Function at 0x402f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45c40d
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28cc
call fcn.00447b70
mov eax, dword [0x472940]
xor eax, esp
mov dword [esp + 0x28c8], eax
push ebx
push esi
push edi
mov eax, dword [0x472940]
xor eax, esp
push eax
lea eax, [esp + 0x28e0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x28], ecx
push str.http:__ngx.sanguosha.com_mc_log
push str.URLS
mov ecx, str.urls.config
mov ebx, str.logstat
lea esi, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], edx
call fcn.004010f0
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x28f4], 0
call fcn.00443dd7
add esp, 0xc
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402faa
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0x28e8], 1
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x38]
push str._I64d
push eax
call fcn.00401900
add esp, 0x10
mov dword [esp + 0x44], vtable.CEthernetMac.0
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x28e8], 2
call fcn.004019d0
mov byte [esp + 0x28e8], 3
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40301d
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov bl, 4
mov byte [esp + 0x28e8], bl
mov edx, dword [ecx]
mov ecx, dword [eax]
push edx
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
mov edx, dword [edi]
push ecx
mov ecx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x28]
push str._s__s__s__s__s
push eax
call fcn.00401900
lea ecx, [esp + 0x30]
add esp, 0x1c
push ecx
lea edi, [esp + 0x1c]
call fcn.004011f0
add esp, 4
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x28ec], 5
call fcn.004027a0
mov byte [esp + 0x28e8], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.004368a6
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4030c9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x28e8], 6
mov edx, dword [ecx]
mov edi, dword [esp + 0x14]
mov ecx, dword [eax]
push edi
push edx
mov edx, dword [esp + 0x2c]
mov eax, dword [edx]
mov edx, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [edx]
push ecx
push eax
lea ecx, [esp + 0x30]
push str._statcode_smacaddr_sversion_slumtype_suser_skey_s
push ecx
call fcn.00401900
mov esi, dword [esp + 0x38]
mov eax, dword [esi - 0xc]
add esp, 0x20
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00402520
lea edx, [esp + 0x20]
push edx
mov ecx, 0x4769fc
call fcn.004027a0
cmp dword [0x4769f4], 0
jne 0x40317e
lea eax, [esp + 0x38]
push eax
push 0
push 0x4769f4
push 0x402910
push 0
push 0
mov dword [esp + 0x50], 0
call fcn.00443d27
add esp, 0x18
mov dword [0x4769f4], eax
test eax, eax
je 0x40317e
mov ecx, dword [0x4769f8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi - 0x10]
mov byte [esp + 0x28e8], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031a1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28e8], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28e8], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4031ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x28e8], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov dword [esp + 0x44], vtable.CEthernetMac.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40321d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28e8], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403248
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28c8]
xor ecx, esp
call fcn.00443100
mov esp, ebp
pop ebp
ret 8