Function at 0x460d70
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x4a720d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4da064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp + 0x4c], esi
lea ebx, [esi + 0x18]
lea edi, [esi + 0x14]
push edi
lea ecx, [ebx + 0x18]
call fcn.00407fe0
mov ecx, ebx
call fcn.0044da50
push edi
lea ecx, [esi + 0x64]
call fcn.00407fe0
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0044dd50
test al, al
jne 0x460dfe
movzx eax, byte [edi + 0x11d]
mov ecx, dword [edi + 0x60]
push eax
push 1
push dword [ecx]
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x460df4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x461338
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0x5c]
mov dword [ebp + 0x20], esi
mov byte [ebp + 0x24], 0
mov dword [ebp - 4], 1
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x50]
call fcn.00471f70
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
push 0
push 0
call fcn.00472070
cmp dword [edi + 4], 7
jne 0x460f02
mov eax, dword [esi + 0xe0]
mov dword [ebp + 0x48], 0
mov edi, dword [eax + 0x1c]
call fcn.004039e0
mov ecx, eax
test ecx, ecx
je 0x46134d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0x50], eax
mov byte [ebp - 4], 3
lea ecx, [ebp + 0x50]
push 0x4bf76c
call fcn.00406f20
test al, al
jne 0x460ea4
push 0x10
push 0x4bf76c
lea ecx, [ebp + 0x50]
call fcn.00407090
mov byte [ebp - 4], 4
lea eax, [ebp + 0x48]
push eax
lea eax, [ebp + 0x50]
push eax
push 0
lea ecx, [esi + 0xe0]
call edi
mov bl, al
mov byte [ebp - 4], 2
or ecx, 0xffffffff
mov edx, dword [ebp + 0x50]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x460edb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x4c]
test bl, bl
je 0x460eff
mov eax, dword [ebp + 0x48]
cmp eax, 2
jne 0x460ef3
mov dword [edi + 4], 8
jmp 0x460eff
cmp eax, 3
jne 0x460eff
mov dword [edi + 4], 9
mov esi, dword [ebp + 0x5c]
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
cmp eax, 8
je 0x460f16
cmp eax, 9
jne 0x4610a5
mov ecx, dword [ebp + 0x18]
xor esi, esi
xor edx, edx
mov dword [ebp + 0x50], esi
xor ebx, ebx
mov dword [ebp + 0x28], edx
test ecx, ecx
jle 0x461319
xor eax, eax
mov dword [ebp + 0x48], eax
test eax, eax
js 0x461357
cmp edx, ecx
jge 0x461357
mov edi, dword [ebp + 0x48]
add edi, dword [ebp + 0x14]
mov dword [ebp], edi
cmp byte [edi + 0x15d], 0
jne 0x46106c
cmp byte [edi + 0x15e], 0
jne 0x46106c
cmp byte [edi + 0x15f], 0
jne 0x46106c
cmp dword [ebp + 4], 9
jne 0x460f85
test byte [edi + 0x94], 1
je 0x46106c
mov ecx, edi
mov byte [edi + 0x15d], 1
call fcn.00455eb0
cmp eax, 1
jne 0x460f99
inc ebx
inc esi
test byte [edi + 0x94], 1
mov dword [ebp + 0x50], esi
je 0x460fe5
mov esi, dword [edi + 0x13c]
test esi, esi
je 0x460fe5
mov edi, dword [ebp + 0x50]
nop dword [eax]
nop word [eax + eax]
mov ecx, esi
mov byte [esi + 0x15d], 1
call fcn.00455eb0
cmp eax, 1
jne 0x460fd4
inc ebx
mov esi, dword [esi + 0x13c]
inc edi
test esi, esi
jne 0x460fc0
mov dword [ebp + 0x50], edi
mov edi, dword [ebp]
xor ecx, ecx
cmp dword [edi + 0x14c], ecx
jle 0x46101d
nop
test ecx, ecx
js 0x461357
cmp ecx, dword [edi + 0x14c]
jge 0x461357
mov eax, dword [edi + 0x148]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x15e], 1
cmp ecx, dword [edi + 0x14c]
jl 0x460ff0
cmp byte [edi + 0x144], 0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x18]
je 0x46106c
inc edx
cmp edx, ecx
jge 0x461069
mov esi, dword [ebp + 0x48]
add esi, 0x16c
nop word [eax + eax]
test esi, esi
js 0x461357
cmp edx, ecx
jge 0x461357
mov eax, dword [ebp + 0x14]
inc edx
mov byte [eax + esi + 0x15e], 1
add esi, 0x16c
mov ecx, dword [ebp + 0x18]
cmp edx, ecx
jl 0x461040
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x48]
inc edx
mov esi, dword [ebp + 0x50]
add eax, 0x16c
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x48], eax
cmp edx, ecx
jl 0x460f32
test esi, esi
je 0x461319
mov esi, dword [ebp + 0x5c]
cmp byte [esi + 0x84], 0
je 0x4610a2
test ebx, ebx
je 0x461319
mov edi, dword [ebp + 0x4c]
cmp byte [edi + 0x16a], 0
lea eax, [ebp + 0x14]
mov dword [ebp + 8], 0x4bf85c
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
je 0x4611b8
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x2c], 0x4bb904
push eax
push 1
push 0
lea ecx, [ebp + 0x14]
mov word [ebp + 0x30], 0x101
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x5c], 0
call fcn.00473180
cmp byte [ebp + 0x30], 0
je 0x46114e
cmp byte [ebp + 0x31], 0
je 0x46114e
cmp dword [ebp + 0x44], 0
je 0x46114e
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x2c]
call dword [eax + 4]
mov ecx, dword [ebp + 0x44]
push 0
mov dword [ebp + 0x34], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
mov eax, dword [ecx]
push 0
push 0x67
call dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
xor esi, esi
push esi
call fcn.004735c0
test eax, eax
je 0x461166
mov esi, eax
cmp eax, 0xe0000008
je 0x461181
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x84], 0
jne 0x461181
mov ecx, dword [ebp + 0xc]
push 0
call fcn.00473290
test eax, eax
cmovne esi, eax
cmp byte [ebp + 0x30], 0
je 0x46131b
cmp byte [ebp + 0x31], 0
je 0x46131b
cmp dword [ebp + 0x44], 0
je 0x46131b
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x2c]
call dword [eax + 4]
mov ecx, dword [ebp + 0x44]
push esi
push 0x67
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x46131b
cmp byte [edi + 0x16b], 0
lea eax, [ebp + 8]
mov dword [ebp + 0x30], 0x4bcca4
mov dword [ebp + 0x38], 0xffffffff
mov dword [ebp + 0x30], 0x4bccb4
mov dword [ebp + 0x3c], eax
je 0x461280
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push esi
call fcn.00461980
mov eax, dword [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x461222
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push ecx
push eax
call edi
test eax, eax
je 0x461218
mov esi, dword [ebp + 0x5c]
jmp 0x461224
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x461224
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4bccb4
test eax, eax
je 0x46131b
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x461272
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x34]
call edi
test eax, eax
je 0x461272
cmp dword [ebp + 0x5c], 0x103
jne 0x461272
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46131b
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push esi
call fcn.00461370
mov eax, dword [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4612c2
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push ecx
push eax
call edi
test eax, eax
je 0x4612b8
mov esi, dword [ebp + 0x5c]
jmp 0x4612c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4612c4
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4bccb4
test eax, eax
je 0x46131b
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x46130e
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x34]
call edi
test eax, eax
je 0x46130e
cmp dword [ebp + 0x5c], 0x103
jne 0x46130e
push 0
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x46131b
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.00460cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00431e30
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
lea esp, [ebp + 0x54]
pop ebp
ret 4
push 0x80004005
call fcn.00402150
push 1
push 0xc000008c
call fcn.00408180
int3