Function at 0x4636fe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db578
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x513330]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x20], esi
push str.____________________Entrance____________________
lea ecx, [ebp - 0x28]
lea eax, [esi + 0xa8]
push ecx
push eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x4f13d4
call fcn.00471a00
add esp, 0xc
mov dword [ebp - 4], 0
mov bl, 1
mov byte [ebp - 4], bl
call fcn.00463390
lea eax, [esi + 0x188]
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 0x2c], bl
lea edx, [ebp - 0x18]
mov byte [ebp - 4], 2
mov ebx, dword [esi + 0x30]
push edx
call fcn.00465ac0
add esp, 4
mov edi, eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
mov ebx, dword [esi + 0x34]
push eax
call fcn.00465ac0
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0xec]
mov edx, dword [edi]
mov eax, dword [eax]
push ecx
push edx
push eax
push str.OldStatus_s_Status_s_Url_s
lea ecx, [ebp - 0x28]
push ecx
lea edi, [esi + 0xa8]
push edi
call fcn.004719c0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46368a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, 2
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4636b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x30]
cmp eax, 7
ja case.default.0x4636bd
jmp dword [eax*4 + 0x463868]
mov ecx, dword [esi + 0x34]
cmp ecx, 5
jne case.0x4636bd.0
mov ebx, esi
call fcn.00463890
lea esi, [ebp - 0x30]
call fcn.00401a20
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.0042e9b0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00462a30
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x70]
push 0
push 0
push esi
push eax
push 0
mov dword [esi + 0x34], edx
push 0
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
sete bl
test eax, eax
je 0x46372f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.______________________Exit______________________
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, esi
call fcn.00463890
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.______________________Exit______________________
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
push edx
push eax
call fcn.00471a00
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi + 0x30]
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00465ac0
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [eax]
push edx
push str.Wrong_state__s_for_Run__.
lea eax, [ebp - 0x28]
push eax
push edi
call fcn.00471980
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg case.0x4636bd.4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp case.0x4636bd.4
mov ecx, dword [esi + 0x30]
push ecx
push str.New_state__d___Should_treat_it.
lea edx, [ebp - 0x28]
push edx
push edi
call fcn.00471980
add esp, 0x10
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push str.______________________Exit______________________
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
push eax
push ecx
call fcn.00471a00
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret