Function at 0x402c5c
Capabilities:
Set environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0xa8
mov esi, dword [ecx + 4]
mov edi, dword [ecx]
call fcn.00401674
mov byte [ebp - 0x61], 0
lea eax, [esi + 4]
mov dword [ebp - 0x6c], eax
lea eax, [edi - 1]
mov dword [ebp - 0x60], eax
test eax, eax
jle 0x402d1c
mov dword [esp], str.__crash
lea ecx, [ebp - 0x34]
call fcn.00402c00
lea ecx, [ebp - 0x4c]
push eax
mov eax, dword [esi + 4]
mov dword [esp], eax
call fcn.00402c00
push edx
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x48]
jne 0x402cda
test eax, eax
je 0x402ce0
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call sub.ucrtbase.dll_memcmp
test eax, eax
je 0x402ce0
mov byte [ebp - 0x61], 0
jmp 0x402d2b
lea eax, [esi + 8]
mov esi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 0x6c], eax
lea eax, [edi - 2]
mov dword [ebp - 0x60], eax
mov dword [esp + 4], 0x40504c
mov dword [esp], str.LLVM_DISABLE_CRASH_REPORT
call esi
push eax
push eax
mov dword [esp + 4], 0x40504c
mov dword [esp], str.LLVM_DISABLE_SYMBOLIZATION
call esi
push eax
push eax
mov byte [ebp - 0x61], 1
cmp dword [ebp - 0x60], 0
mov esi, 1
je 0x403008
mov eax, dword [ebp - 0x6c]
lea ecx, [ebp - 0x4c]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00402c00
lea ecx, [ebp - 0x34]
push eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.00401598
test byte [ebp - 0x1c], 1
je 0x402dfb
call fcn.00401590
mov dword [esp], str.unable_to_find__
mov ecx, eax
call fcn.00402ba4
mov ecx, eax
push ebx
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00402ba4
push esi
mov ecx, eax
mov dword [esp], str._in_PATH:
call fcn.00402ba4
mov ebx, eax
push edi
test byte [ebp - 0x1c], 1
je 0x402dac
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
jmp 0x402db3
call fcn.004015e0
xor edx, edx
mov esi, dword [eax]
lea ecx, [ebp - 0x4c]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [esi + 0x10]
mov ecx, ebx
mov esi, 1
push edi
push edi
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004015a8
push edx
mov ecx, eax
push edx
mov dword [esp], 0x4050a0
call fcn.00402ba4
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004015d8
jmp 0x402ffa
cmp dword [ebp - 0x60], 0xfffffff
jbe 0x402e0d
mov dword [esp], str.vector::reserve
jmp 0x402e78
mov eax, dword [ebp - 0x60]
xor esi, esi
call fcn.00402c28
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x60]
mov ebx, dword [ebp - 0x5c]
lea eax, [ebx + eax*8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x4c]
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.00402c00
push ecx
mov eax, dword [ebp - 0x70]
cmp dword [ebp - 0x5c], eax
je 0x402e5d
mov edi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
add dword [ebp - 0x5c], 8
mov dword [edi], eax
mov dword [edi + 4], edx
jmp 0x402f09
mov esi, dword [ebp - 0x5c]
sub esi, ebx
mov ecx, esi
mov edi, esi
sar ecx, 3
cmp ecx, 0xfffffff
jne 0x402e7d
mov dword [esp], str.vector::_M_realloc_insert
call fcn.004015c8
cmp dword [ebp - 0x5c], ebx
mov eax, 1
mov dword [ebp - 0x78], 0xfffffff
cmovne eax, ecx
add eax, ecx
jb 0x402ea0
mov ecx, 0xfffffff
cmp eax, ecx
cmovbe ecx, eax
mov dword [ebp - 0x78], ecx
mov eax, dword [ebp - 0x78]
call fcn.00402c28
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x68], eax
mov esi, dword [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
mov dword [esi + edi + 4], edx
mov ecx, esi
mov dword [esi + edi], eax
mov eax, ebx
cmp dword [ebp - 0x5c], eax
je 0x402ed7
mov esi, dword [eax]
mov edi, dword [eax + 4]
add ecx, 8
add eax, 8
mov dword [ecx - 8], esi
mov dword [ecx - 4], edi
jmp 0x402ebf
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x68]
sub esi, ebx
lea eax, [eax + esi + 8]
mov dword [ebp - 0x5c], eax
test ebx, ebx
je 0x402efb
mov eax, dword [ebp - 0x70]
mov dword [esp], ebx
sub eax, ebx
mov dword [esp + 4], eax
call sub.libstdc_6.dll_operator_delete_void__unsigned_int_
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x78]
lea eax, [edx + eax*8]
mov ebx, edx
mov dword [ebp - 0x70], eax
inc dword [ebp - 0x74]
mov edi, dword [ebp - 0x60]
cmp dword [ebp - 0x74], edi
jl 0x402e29
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x4c]
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x5c]
xor edi, edi
mov ecx, 3
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x50], 0
sub esi, ebx
mov dword [esp + 0x2c], edx
xor edx, edx
mov eax, esi
lea esi, [ebp - 0x58]
mov dword [esp + 0x38], edi
sar eax, 3
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
lea edi, [esp + 0x10]
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
call fcn.004015a0
cmp eax, 3
sete cl
test byte [ebp - 0x61], cl
jne 0x402f93
test eax, eax
jns 0x402fc8
call fcn.00401590
mov ecx, eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.004015a8
push edx
mov ecx, eax
push edx
mov dword [esp], 0x4050a0
call fcn.00402ba4
push ecx
mov al, byte [ebp - 0x61]
xor eax, 1
movzx esi, al
jmp 0x402fdd
cmp byte [ebp - 0x61], 0
mov esi, 1
jne 0x402fdd
test eax, eax
sete al
movzx eax, al
mov esi, eax
lea ecx, [ebp - 0x4c]
call fcn.004015d8
test ebx, ebx
je 0x402ffa
mov eax, dword [ebp - 0x70]
mov dword [esp], ebx
sub eax, ebx
mov dword [esp + 4], eax
call sub.libstdc_6.dll_operator_delete_void__unsigned_int_
test byte [ebp - 0x1c], 1
jne 0x403008
lea ecx, [ebp - 0x34]
call fcn.004015d8
lea esp, [ebp - 0x10]
mov eax, esi
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret