Function at 0x4ee590
Capabilities:
Check for software breakpoints
Get common file path
Get process heap flags
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x214]
push ebx
sub esp, 0x47c
mov dword [esp + 0x14], 0x104
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
sub esp, 0x18
cmp word [ebp - 0x214], 0
je 0x4eece0
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4ee5e8
sub eax, esi
sar eax, 1
add eax, 1
mov dword [ebp - 0x460], eax
xor eax, eax
lea edi, [ebp - 0x41c]
lea esi, [esi]
lea esi, [esi]
movzx edx, word [eax + 0x5eaa38]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x4ee610
mov eax, dword [sym.imp.kernel32.dll_GetTempPathW]
mov dword [esp + 4], edi
mov dword [esp], 0x104
mov dword [ebp - 0x464], eax
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3e9
mov eax, dword [sym.imp.kernel32.dll_lstrcmpiW]
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [ebp - 0x468], eax
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.GetTempPathW_returned_an_incorrect_temporary_path_n
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
cmp word [ebp - 0x41c], 0
mov dword [eax + 4], 0x3ea
je 0x4eecef
mov eax, edi
lea esi, [esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x4ee6a8
sub eax, edi
sar eax, 1
cmp ebx, eax
mov dword [esp + 4], str.returned_length_should_be_equal_to_the_length_of_string_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
xor eax, eax
nop
movzx edx, word [eax + 0x5eaa38]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x4ee6d0
mov dword [esp + 4], edi
mov dword [esp], 1
mov eax, dword [ebp - 0x464]
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3ee
xor eax, eax
mov dword [esp + 4], str.unicode_version_should_truncate_the_buffer_to_zero_size_n
cmp word [ebp - 0x41c], 0
sete al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3ef
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x460]
mov dword [esp + 4], str.Expected____lu__got__lu_n
cmp ebx, eax
mov dword [esp + 8], eax
setae al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, dword [ebp - 0x464]
call ecx
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3f2
mov dword [esp + 0xc], ebx
mov eax, dword [ebp - 0x460]
mov dword [esp + 4], str.Expected____lu__got__lu_n
cmp ebx, eax
mov dword [esp + 8], eax
setae al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
xor eax, eax
lea esi, [esi]
nop
movzx edx, word [eax + 0x5eaa38]
mov word [edi + eax], dx
add eax, 2
test dx, dx
jne 0x4ee7c0
mov dword [esp], ebx
mov dword [esp + 4], edi
mov eax, dword [ebp - 0x464]
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3f6
mov dword [esp + 4], esi
mov dword [esp], edi
mov eax, dword [ebp - 0x468]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.GetTempPathW_returned_an_incorrect_temporary_path_n
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
cmp word [ebp - 0x41c], 0
mov dword [eax + 4], 0x3f7
je 0x4eecf6
mov eax, edi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4ee848
sub eax, edi
sar eax, 1
cmp ebx, eax
mov dword [esp + 4], str.returned_length_should_be_equal_to_the_length_of_string_n
mov ebx, edi
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, edi
lea esi, [esi]
mov dword [eax], 0x610061
add eax, 4
cmp eax, esi
jne 0x4ee878
mov dword [esp + 4], edi
mov dword [esp], 0x104
mov eax, dword [ebp - 0x464]
call eax
sub esp, 8
mov dword [ebp - 0x46c], eax
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x3fc
mov dword [esp + 4], esi
mov dword [esp], edi
mov eax, dword [ebp - 0x468]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.GetTempPathW_returned_an_incorrect_temporary_path_n
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
call fcn.0057d110
mov dword [eax], 0x5e82d4
cmp word [ebp - 0x41c], 0
mov dword [eax + 4], 0x3fd
je 0x4eecfd
mov eax, edi
nop
add eax, 2
cmp word [eax], 0
jne 0x4ee900
sub eax, edi
sar eax, 1
mov dword [esp + 4], str.returned_length_should_be_equal_to_the_length_of_string_n
cmp dword [ebp - 0x46c], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov ecx, dword [ebp - 0x46c]
lea eax, [ecx + 1]
mov dword [ebp - 0x460], eax
cmp eax, 0x103
ja 0x4ee9a0
mov dword [ebp - 0x470], ebx
mov ebx, eax
lea esi, [esi]
nop
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x401
movzx ecx, word [edi + ebx*2]
mov dword [esp + 8], ebx
test cx, cx
mov dword [esp + 0xc], ecx
sete al
mov dword [esp + 4], str.expected_NULL_at___ld___got_0x_x_n
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp ebx, 0x104
jne 0x4ee950
mov ebx, dword [ebp - 0x470]
lea esi, [esi]
nop
mov dword [ebx], 0x610061
add ebx, 4
cmp ebx, esi
jne 0x4ee9a0
mov edx, dword [ebp - 0x460]
mov dword [esp + 4], edi
shr edx, 1
mov dword [esp], edx
mov eax, dword [ebp - 0x464]
mov dword [ebp - 0x470], edx
call eax
sub esp, 8
mov ebx, eax
call fcn.0057d110
cmp dword [ebp - 0x460], ebx
mov edx, dword [ebp - 0x470]
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x407
mov eax, 1
je 0x4eea10
mov eax, dword [ebp - 0x46c]
add eax, 2
cmp eax, ebx
sete cl
xor eax, eax
cmp dword [0x8f0770], 0
sete al
and eax, ecx
mov dword [ebp - 0x46c], edx
mov dword [esp + 0xc], ebx
mov ecx, dword [ebp - 0x460]
lea ebx, [ebp - 0x45c]
mov dword [esp], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], str.expected__ld__got__ld_n
call fcn.004e88d0
call dword [sym.imp.kernel32.dll_GetVersion]
mov dword [ebp - 0x460], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov dword [esp], 0x5e92ee
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
sub esp, 0xc
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_strlen]
mov edx, dword [ebp - 0x46c]
cmp dword [ebp - 0x460], 0x60001
jbe 0x4eea86
cmp eax, 2
je 0x4eecd8
test edx, edx
je 0x4eeae8
mov dword [ebp - 0x460], edx
xor ebx, ebx
lea esi, [esi]
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x418
movzx ecx, word [edi + ebx*2]
mov dword [esp + 8], ebx
test cx, cx
mov dword [esp + 0xc], ecx
sete al
mov dword [esp + 4], str.expected_NULL_at___ld___got_0x_x_n
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp dword [ebp - 0x460], ebx
jne 0x4eea98
mov edx, dword [ebp - 0x460]
cmp edx, 0x104
je 0x4eeb33
mov ebx, edx
lea esi, [esi]
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x41a
movzx edx, word [edi + ebx*2]
mov dword [esp + 8], ebx
cmp dx, 0x61
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 4], str.expected_a_at___ld___got_0x_x_n
add ebx, 1
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp ebx, 0x104
jne 0x4eeaf0
mov dword [esp + 8], 0x1fffc
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4eed1f
lea edx, [eax + 0x1fffc]
lea esi, [esi]
nop
mov ecx, 0xcc
add eax, 2
mov word [eax - 2], cx
cmp eax, edx
jne 0x4eeb70
mov dword [esp + 4], ebx
mov dword [esp], 0xfffe
mov eax, dword [ebp - 0x464]
call eax
sub esp, 8
mov edi, eax
mov eax, 0x428
call fcn.004e7d80
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x468]
call eax
sub esp, 8
test eax, eax
sete al
mov dword [esp + 4], str.GetTempPathW_returned_an_incorrect_temporary_path_n
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
mov eax, 0x429
call fcn.004e7d80
cmp word [ebx], 0
je 0x4eed18
mov eax, ebx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x4eebe8
sub eax, ebx
sar eax, 1
cmp edi, eax
mov dword [esp + 4], str.returned_length_should_be_equal_to_the_length_of_string_n
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp edi, 0x7ffe
ja 0x4eed04
lea esi, [esi]
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x430
movzx edx, word [ebx + edi*2]
mov dword [esp + 8], edi
test dx, dx
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 4], str.expected_NULL_at___ld___got_0x_x_n
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp edi, 0x7fff
jne 0x4eec20
mov edi, 0x8000
lea esi, [esi]
nop
call fcn.0057d110
mov dword [eax], 0x5e82d4
mov dword [eax + 4], 0x434
movzx edx, word [ebx + edi*2]
mov dword [esp + 8], edi
cmp dx, 0xcc
mov dword [esp + 0xc], edx
sete al
mov dword [esp + 4], str.expected_0xcc_at___ld___got_0x_x_n
add edi, 1
movzx eax, al
mov dword [esp], eax
call fcn.004e88d0
cmp edi, 0xfffe
jne 0x4eec70
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x460], 1
jmp 0x4ee5fe
xor eax, eax
jmp 0x4ee6b5
xor eax, eax
jmp 0x4ee855
xor eax, eax
jmp 0x4ee90d
add edi, 1
cmp edi, 0xfffd
ja 0x4eecb4
jmp 0x4eec70
xor eax, eax
jmp 0x4eebf5
mov eax, 0x422
call fcn.004e7d80
mov dword [esp], str.Could_not_allocate_memory_for_the_test_n
call fcn.004e8330
jmp 0x4eecd8