Function at 0x462340
Capabilities:
Terminate thread

Disassembly:
push ebp
lea ebp, [esp - 0x54]
sub esp, 0x54
push 0xffffffffffffffff
push 0x4a953d
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x4db064]
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.00408560
mov ecx, ebx
call fcn.0044efe0
push edi
lea ecx, [esi + 0x64]
call fcn.00408560
mov edi, esi
lea ecx, [esi + 0x4c]
mov dword [edi + 0x50], ebx
call fcn.0044f2f0
test al, al
jne 0x4623ce
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 0x4623c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0xe0000027
jmp 0x462908
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.00473500
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
push 0
push 0
call fcn.00473600
cmp dword [edi + 4], 7
jne 0x4624d2
mov eax, dword [esi + 0xe0]
mov dword [ebp + 0x48], 0
mov edi, dword [eax + 0x1c]
call fcn.00404130
mov ecx, eax
test ecx, ecx
je 0x46291d
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 0x4bffec
call fcn.004031b0
test al, al
jne 0x462474
push 0x10
push 0x4bffec
lea ecx, [ebp + 0x50]
call fcn.00403320
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 0x4624ab
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp + 0x4c]
test bl, bl
je 0x4624cf
mov eax, dword [ebp + 0x48]
cmp eax, 2
jne 0x4624c3
mov dword [edi + 4], 8
jmp 0x4624cf
cmp eax, 3
jne 0x4624cf
mov dword [edi + 4], 9
mov esi, dword [ebp + 0x5c]
mov eax, dword [edi + 4]
mov dword [ebp + 4], eax
cmp eax, 8
je 0x4624e6
cmp eax, 9
jne 0x462675
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 0x4628e9
xor eax, eax
mov dword [ebp + 0x48], eax
test eax, eax
js 0x462927
cmp edx, ecx
jge 0x462927
mov edi, dword [ebp + 0x48]
add edi, dword [ebp + 0x14]
mov dword [ebp], edi
cmp byte [edi + 0x15d], 0
jne 0x46263c
cmp byte [edi + 0x15e], 0
jne 0x46263c
cmp byte [edi + 0x15f], 0
jne 0x46263c
cmp dword [ebp + 4], 9
jne 0x462555
test byte [edi + 0x94], 1
je 0x46263c
mov ecx, edi
mov byte [edi + 0x15d], 1
call fcn.00457420
cmp eax, 1
jne 0x462569
inc ebx
inc esi
test byte [edi + 0x94], 1
mov dword [ebp + 0x50], esi
je 0x4625b5
mov esi, dword [edi + 0x13c]
test esi, esi
je 0x4625b5
mov edi, dword [ebp + 0x50]
nop dword [eax]
nop word [eax + eax]
mov ecx, esi
mov byte [esi + 0x15d], 1
call fcn.00457420
cmp eax, 1
jne 0x4625a4
inc ebx
mov esi, dword [esi + 0x13c]
inc edi
test esi, esi
jne 0x462590
mov dword [ebp + 0x50], edi
mov edi, dword [ebp]
xor ecx, ecx
cmp dword [edi + 0x14c], ecx
jle 0x4625ed
nop
test ecx, ecx
js 0x462927
cmp ecx, dword [edi + 0x14c]
jge 0x462927
mov eax, dword [edi + 0x148]
mov eax, dword [eax + ecx*4]
inc ecx
mov byte [eax + 0x15e], 1
cmp ecx, dword [edi + 0x14c]
jl 0x4625c0
cmp byte [edi + 0x144], 0
mov edx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x18]
je 0x46263c
inc edx
cmp edx, ecx
jge 0x462639
mov esi, dword [ebp + 0x48]
add esi, 0x16c
nop word [eax + eax]
test esi, esi
js 0x462927
cmp edx, ecx
jge 0x462927
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 0x462610
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 0x462502
test esi, esi
je 0x4628e9
mov esi, dword [ebp + 0x5c]
cmp byte [esi + 0x84], 0
je 0x462672
test ebx, ebx
je 0x4628e9
mov edi, dword [ebp + 0x4c]
cmp byte [edi + 0x16a], 0
lea eax, [ebp + 0x14]
mov dword [ebp + 8], 0x4c00dc
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 0x462788
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x2c], 0x4bc22c
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.00474710
cmp byte [ebp + 0x30], 0
je 0x46271e
cmp byte [ebp + 0x31], 0
je 0x46271e
cmp dword [ebp + 0x44], 0
je 0x46271e
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.00474b60
test eax, eax
je 0x462736
mov esi, eax
cmp eax, 0xe0000008
je 0x462751
mov eax, dword [ebp + 0x10]
cmp byte [eax + 0x84], 0
jne 0x462751
mov ecx, dword [ebp + 0xc]
push 0
call fcn.00474820
test eax, eax
cmovne esi, eax
cmp byte [ebp + 0x30], 0
je 0x4628eb
cmp byte [ebp + 0x31], 0
je 0x4628eb
cmp dword [ebp + 0x44], 0
je 0x4628eb
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 0x4628eb
cmp byte [edi + 0x16b], 0
lea eax, [ebp + 8]
mov dword [ebp + 0x30], 0x4bd630
mov dword [ebp + 0x38], 0xffffffff
mov dword [ebp + 0x30], 0x4bd640
mov dword [ebp + 0x3c], eax
je 0x462850
mov byte [ebp - 4], 8
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push esi
call fcn.00462f50
mov eax, dword [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4627f2
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push ecx
push eax
call edi
test eax, eax
je 0x4627e8
mov esi, dword [ebp + 0x5c]
jmp 0x4627f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4627f4
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4bd640
test eax, eax
je 0x4628eb
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x462842
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x34]
call edi
test eax, eax
je 0x462842
cmp dword [ebp + 0x5c], 0x103
jne 0x462842
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 0x4628eb
mov byte [ebp - 4], 0xa
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push esi
call fcn.00462940
mov eax, dword [ebp + 0x34]
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x462892
lea ecx, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push ecx
push eax
call edi
test eax, eax
je 0x462888
mov esi, dword [ebp + 0x5c]
jmp 0x462894
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x462894
xor esi, esi
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x30], 0x4bd640
test eax, eax
je 0x4628eb
push dword [ebp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x38], 0xffffffff
je 0x4628de
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x34]
call edi
test eax, eax
je 0x4628de
cmp dword [ebp + 0x5c], 0x103
jne 0x4628de
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 0x4628eb
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.004622a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00432aa0
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.004022e0
push 1
push 0xc000008c
call fcn.00408700
int3