Function at 0x408b80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439b72
mov eax, dword fs:[0]
push eax
sub esp, 0x444
mov eax, dword [0x44aaf0]
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.0040f8a0
lea ecx, [edi + 0x1f8]
push ecx
push eax
lea edx, [ebp - 0x420]
push edx
mov byte [ebp - 4], 1
call fcn.0040eb50
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 0x408c06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fd40
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.0040ff80
mov ecx, dword [ebp - 0x420]
add esp, 8
push 0
push ecx
lea ecx, [ebp - 0x434]
call fcn.00413b65
push 0x4418a0
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 0x408c98
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 0x44f614
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.00413b65
lea ecx, [ebp - 0x434]
mov byte [ebp - 4], 7
call fcn.004133f6
test edx, edx
ja 0x408ceb
cmp eax, 0x14f400
jbe 0x408f07
push 0x400
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00424d20
add esp, 0xc
push 0
push 0
push 0x14f400
lea ecx, [ebp - 0x434]
call fcn.0041329c
push 0x4418d8
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 0x408d47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x20
lea ecx, [edi + 0x190]
push 0x4418f0
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.00413211
test eax, eax
jle 0x408da4
push 0x400
lea eax, [ebp - 0x418]
push eax
lea ecx, [ebp - 0x448]
call fcn.00413251
jmp 0x408d70
lea ecx, [ebp - 0x434]
call fcn.00413591
lea ecx, [ebp - 0x448]
call fcn.00413591
lea ecx, [ebp - 0x424]
push ecx
mov esi, edi
call fcn.00408fe0
cmp eax, 1
jne 0x408e5b
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], bl
call fcn.004136c7
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 0x408e05
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.004136c7
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 0x408e3a
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.004225d3
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x184]
test eax, eax
je 0x408e97
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.004136c7
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 0x408ecb
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.004136c7
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 0x408f00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x408e3f
lea ecx, [ebp - 0x434]
call fcn.00413591
lea ecx, [ebp - 0x448]
call fcn.00413591
mov eax, dword [edi + 0x184]
test eax, eax
je 0x408f59
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 0x441914
call fcn.004172c7
mov eax, dword [edi + 0x20]
push 0
push 0
push 0xc02
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
call fcn.0040fd40
push 0x43f458
push 0x441940
call fcn.0040fe10
add esp, 8
lea ecx, [ebp - 0x448]
mov byte [ebp - 4], bl
call fcn.004136c7
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 0x408df9