Function at 0x404770
Capabilities:
Allocate thread local storage
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x4c
mov dword [ebp - 0x20], eax
mov ebx, dword [sym.imp.msvcrt.dll_strrchr]
mov dword [esp + 4], 0x2f
mov dword [esp], eax
call ebx
mov dword [esp + 4], 0x5c
test eax, eax
lea esi, [eax + 1]
cmove esi, edi
mov dword [esp], esi
call ebx
lea edx, [eax + 1]
test eax, eax
cmovne esi, edx
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_strlen]
mov edi, eax
cmp eax, 2
jbe 0x4047da
lea ebx, [eax - 2]
mov dword [esp + 4], 0x4073f1
lea eax, [esi + ebx]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_strcmp]
test eax, eax
cmove edi, ebx
mov ecx, str.asn1
mov dword [ebp - 0x1c], esi
mov ebx, 0x4076a0
mov esi, ecx
lea esi, [esi]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edi
mov dword [esp], esi
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_strncmp]
test eax, eax
jne 0x40480e
cmp byte [esi + edi], 0
je 0x404850
add ebx, 8
mov esi, dword [ebx]
test esi, esi
jne 0x4047f0
mov eax, dword [ebp - 0x20]
mov dword [esp], str.Fatal:_test__s_does_not_exist._n
mov dword [esp + 4], eax
call dword [sym.imp.msvcrt.dll_printf]
mov dword [esp], 1
call dword [0x40600c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x418040], ebx
mov dword [0x40800c], eax
call dword [ebx + 4]
mov eax, dword [0x406008]
test eax, eax
je 0x404982
mov esi, dword [0x418020]
mov ecx, dword [0x408008]
mov edi, dword [0x418024]
mov edx, dword [0x418028]
mov eax, esi
mov dword [ebp - 0x20], ecx
mov ecx, dword [sym.imp.msvcrt.dll_printf]
or eax, edi
or eax, edx
mov dword [ebp - 0x1c], ecx
je 0x4048e8
cmp dword [ebp - 0x20], 0
mov eax, 0x407335
je 0x4048b3
mov dword [ebp - 0x1c], edx
call fcn.00404570
mov edx, dword [ebp - 0x1c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x20]
mov dword [esp], str._04x:_s:_s_Silenced__d_todos___d_skips_and__d_traces._n
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll_printf]
mov dword [ebp - 0x1c], eax
call eax
mov esi, dword [0x418038]
mov eax, dword [0x418034]
mov edx, str.failures
mov ecx, dword [0x41802c]
mov edi, dword [0x418030]
mov dword [ebp - 0x20], eax
mov eax, str.failure
add ecx, esi
cmp ecx, 1
cmovne eax, edx
add esi, dword [0x41803c]
add esi, edi
add esi, dword [0x41802c]
cmp dword [0x408008], 0
mov dword [ebp - 0x24], eax
mov eax, 0x407335
je 0x40493e
mov dword [ebp - 0x28], ecx
call fcn.00404570
mov ecx, dword [ebp - 0x28]
mov edx, dword fs:[0x18]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x20]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], edx
mov edx, dword [ebp - 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], eax
mov eax, dword [ebx]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x20]
mov dword [esp], str._04x:_s:_s__d_tests_executed___d_marked_as_todo___d__s____d_skipped._n
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
call eax
mov eax, dword [0x41802c]
add eax, dword [0x418038]
mov edx, 0xff
cmp eax, 0xff
cmovg eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret