Function at 0x46b530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x513ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x573be0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x20], ebx
push str.IN_time
lea ecx, [esp + 0x28]
call fcn.004204a0
push str.killThread
lea ecx, [esp + 0x1c]
mov dword [esp + 0x54], 0
call fcn.004204a0
mov byte [esp + 0x50], 1
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov byte [esp + 0x50], 2
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x30], edi
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x34]
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 3
call fcn.00421890
add esp, 4
lea ecx, [esp + 0x24]
push ecx
mov edx, eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x54], 4
call fcn.00421890
add esp, 4
mov esi, eax
mov byte [esp + 0x50], 5
call fcn.004ead9d
push eax
mov edx, esi
lea ecx, [esp + 0x30]
call fcn.00421800
add esp, 4
mov byte [esp + 0x50], 6
cmp dword [ebx + 0xc], 0
je 0x46b621
push 0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [ebx + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x50], 5
mov edx, dword [esp + 0x2c]
add edx, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [edx + 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x46b646
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 4
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b668
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 3
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b68a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea edx, [edi - 0x10]
mov byte [esp + 0x50], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b6a8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 1
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b6ca
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b6ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [esp + 0x50], 0xffffffff
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b711
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
mov byte [esp + 0x17], 0
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x2c], edi
mov esi, dword [ebp + 8]
push str.threadId
mov ecx, esi
mov dword [esp + 0x54], 7
call fcn.00439d60
cmp eax, 0x57b240
je 0x46b9b5
push str.threadId
mov ecx, esi
call fcn.00439d60
mov al, byte [eax + 8]
cmp al, 1
je 0x46b76f
cmp al, 2
je 0x46b76f
cmp al, 5
je 0x46b76f
cmp al, 3
jne 0x46b9b5
push str.threadId
mov ecx, esi
call fcn.00439d60
mov ecx, eax
call fcn.00439520
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
je 0x46b9ab
mov edx, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, str.setting_event_for_thread:
mov byte [esp + 0x50], 0xd
test eax, 0xffff0000
jne 0x46b7d0
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x46b7de
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00420bb0
jmp 0x46b7de
push str.setting_event_for_thread:
lea ecx, [esp + 0x20]
call fcn.00420650
mov byte [esp + 0x50], 0xe
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, str.killThread
mov byte [esp + 0x50], 0xf
test eax, 0xffff0000
jne 0x46b823
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x46b833
push esi
push eax
lea ecx, [esp + 0x20]
call fcn.00420bb0
jmp 0x46b833
push 0xa
push str.killThread
lea ecx, [esp + 0x20]
call fcn.00420c80
mov byte [esp + 0x50], 0x10
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x38]
call fcn.00421920
mov esi, eax
mov byte [esp + 0x50], 0x11
mov edx, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x28]
lea ecx, [esp + 0x34]
mov byte [esp + 0x54], 0x12
call fcn.00421890
add esp, 4
push esi
mov edx, eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x54], 0x13
call fcn.00421890
add esp, 4
mov esi, dword [esp + 0x20]
mov byte [esp + 0x50], 0x14
cmp dword [esi + 0xc], 0
je 0x46b8af
push 0
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esi + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x50], 0x13
mov edx, dword [esp + 0x34]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b8d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x12
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b8f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x11
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b915
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x10
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b937
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0xe
mov edx, dword [esp + 0x18]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b959
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 7
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46b97b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x46b9ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x30]
push str.killThread_SetEvent__d
push eax
call fcn.00421610
mov edi, dword [esp + 0x38]
add esp, 0xc
jmp 0x46baf1
mov byte [esp + 0x17], 1
jmp 0x46baf1
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, str.error_threadId_not_exist
mov byte [esp + 0x50], 8
test eax, 0xffff0000
jne 0x46b9f5
movzx esi, ax
mov ecx, esi
call fcn.0041fcd0
test eax, eax
je 0x46ba03
push esi
push eax
lea ecx, [esp + 0x24]
call fcn.00420bb0
jmp 0x46ba03
push str.error_threadId_not_exist
lea ecx, [esp + 0x20]
call fcn.00420650
push str.killThread
lea ecx, [esp + 0x28]
mov byte [esp + 0x54], 9
call fcn.004204a0
mov byte [esp + 0x50], 0xa
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x1c]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x54], 0xb
call fcn.00421890
add esp, 4
mov esi, dword [esp + 0x20]
mov byte [esp + 0x50], 0xc
cmp dword [esi + 0xc], 0
je 0x46ba69
push 2
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esi + 8]
push eax
call fcn.004219a0
mov byte [esp + 0x50], 0xb
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46ba8b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0xa
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46baad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 9
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bacf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 7
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46baf1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x46bb93
mov ecx, 8
mov word [eax], cx
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
cmp byte [esp + 0x17], 0
mov ecx, str.false
push edi
mov eax, str.true
cmove eax, ecx
push eax
lea eax, [esp + 0x24]
push str.__result__:__s____error__:___s__
push eax
mov byte [esp + 0x60], 0x15
call fcn.00421610
add esp, 0x10
lea ecx, [esp + 0x1c]
push 0x54df28
push 0x54d17c
call fcn.00421ef0
mov esi, dword [esp + 0x1c]
push dword [esi - 0xc]
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov ecx, eax
test ecx, ecx
jne 0x46bb6f
call fcn.004208f0
mov eax, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [eax + 8], ecx
mov byte [esp + 0x50], 7
lea eax, [esi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bb93
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push str.OUT_time
lea ecx, [esp + 0x34]
call fcn.004204a0
push str.killThread
lea ecx, [esp + 0x20]
mov byte [esp + 0x54], 0x16
call fcn.004204a0
mov byte [esp + 0x50], 0x17
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x50], 0x18
mov eax, dword [0x574ba4]
mov ecx, 0x574ba4
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x44]
mov byte [esp + 0x54], 0x19
call fcn.00421890
add esp, 4
lea ecx, [esp + 0x30]
push ecx
mov edx, eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x54], 0x1a
call fcn.00421890
add esp, 4
mov esi, eax
mov byte [esp + 0x50], 0x1b
call fcn.004ead9d
push eax
mov edx, esi
lea ecx, [esp + 0x3c]
call fcn.00421800
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x50], 0x1c
cmp dword [eax + 0xc], 0
je 0x46bc55
push 0
push ecx
lea ecx, [esp + 0x24]
push ecx
add eax, 8
push eax
call fcn.004219a0
mov byte [esp + 0x50], 0x1b
mov edx, dword [esp + 0x38]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bc77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x1a
mov edx, dword [esp + 0x3c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bc99
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x19
mov edx, dword [esp + 0x40]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bcbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x18
mov edx, dword [esp + 0x28]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bcdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x17
mov edx, dword [esp + 0x24]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bcff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 0x16
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bd21
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [esp + 0x50], 7
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
mov ecx, ebx
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x46bd43
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [esp + 0x50], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x46bd62
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8