Function at 0x408ad0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4395b2
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x449af0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea esi, [ebp - 0x438]
mov edi, ecx
mov dword [ebp - 4], 0
call fcn.0040f450
lea ecx, [edi + 0x1f8]
push ecx
push eax
lea edx, [ebp - 0x420]
push edx
mov byte [ebp - 4], 1
call fcn.0040e700
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x438]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408b56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040f8f0
push ecx
mov ecx, esp
mov dword [ebp - 0x41c], esp
push 0x43f1fc
call fcn.00403ce0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x420]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x44c], esp
mov esi, esp
push eax
call fcn.00401f40
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov byte [ebp - 4], 3
call fcn.0040fb30
mov ecx, dword [ebp - 0x420]
add esp, 8
push 0
push ecx
lea ecx, [ebp - 0x434]
call fcn.004136d5
push 0x43feb8
lea ecx, [ebp - 0x41c]
mov byte [ebp - 4], 5
call fcn.00403ce0
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408be8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.TempUpgradeUpgradeFiles.zip
lea ecx, [ebp - 0x424]
push 0x44e614
push ecx
call fcn.004039e0
add esp, 0xc
mov bl, 6
mov byte [ebp - 4], bl
mov edx, dword [ebp - 0x424]
push 0x1001
push edx
lea ecx, [ebp - 0x448]
call fcn.004136d5
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 7
call fcn.00412f66
test edx, edx
ja 0x408c3b
cmp eax, 0x1f4000
jbe 0x408e57
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00424840
add esp, 0xc
push 0
push 0
push 0x1f4000
lea ecx, [ebp - 0x434]
call fcn.00412e0c
push 0x43fef0
lea ecx, [ebp - 0x41c]
call fcn.00403ce0
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408c97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20
lea ecx, [edi + 0x190]
push 0x43ff08
call fcn.00402080
mov ecx, dword [edi + 0x20]
push 0
push 0
push 0xc04
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea esp, [esp]
push 0x400
lea edx, [ebp - 0x418]
push edx
lea ecx, [ebp - 0x434]
call fcn.00412d81
test eax, eax
jle 0x408cf4
push 0x400
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x448]
call fcn.00412dc1
jmp 0x408cc0
lea ecx, [ebp - 0x434]
call fcn.00413101
lea ecx, [ebp - 0x448]
call fcn.00413101
lea ecx, [ebp - 0x424]
push ecx
mov esi, edi
call fcn.00408f30
cmp eax, 1
jne 0x408dab
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], bl
call fcn.00413237
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 3
call fcn.00413237
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408d8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004220fe
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x184]
test eax, eax
je 0x408de7
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [edi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], bl
call fcn.00413237
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 3
call fcn.00413237
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x420]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408e50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408d8f
lea ecx, [ebp - 0x434]
call fcn.00413101
lea ecx, [ebp - 0x448]
call fcn.00413101
mov eax, dword [edi + 0x184]
test eax, eax
je 0x408ea9
lea ecx, [ebp - 0x41c]
mov dword [ebp - 0x41c], 0
mov edx, dword [eax + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [edi + 0x184]
mov edx, dword [ecx + 0x2c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
push 0x43ff2c
call fcn.00416e37
mov eax, dword [edi + 0x20]
push 0
push 0
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040f8f0
push 0x43f458
push 0x43ff58
call fcn.0040f9c0
add esp, 8
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], bl
call fcn.00413237
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x424]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408d49