Function at 0x402b50
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x3c
mov eax, str.CHROME_CRASHED
mov dword [esp], eax
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b60
push ebx
sub eax, edx
push ebp
mov dword [esp + 0xc], eax
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004082c0
mov edi, 8
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x402b91
mov eax, dword [eax + 4]
jmp 0x402b94
add eax, 4
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push eax
call ebp
test eax, eax
sete bl
cmp dword [esp + 0x44], edi
jb 0x402bb9
mov edx, dword [esp + 0x30]
push edx
call fcn.004390ba
add esp, 4
test bl, bl
je 0x402bc6
pop edi
pop ebp
xor al, al
pop ebx
add esp, 0x3c
ret
mov ebx, str.CHROME_RESTART
mov eax, ebx
mov dword [esp + 0xc], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bd4
sub eax, edx
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004082c0
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x402bfd
mov eax, dword [eax + 4]
jmp 0x402c00
add eax, 4
push esi
push 0
push 0
push eax
call ebp
mov esi, eax
cmp dword [esp + 0x48], edi
jb 0x402c1d
mov edx, dword [esp + 0x34]
push edx
call fcn.004390ba
add esp, 4
test esi, esi
je 0x402d2e
xor ecx, ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004383d6
mov edi, eax
mov eax, ebx
add esp, 4
mov dword [esp + 0x10], ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402c50
sub eax, edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004082c0
mov ebx, 8
add esp, 8
cmp dword [eax + 0x18], ebx
jb 0x402c7e
mov eax, dword [eax + 4]
jmp 0x402c81
add eax, 4
push esi
push edi
push eax
call ebp
cmp dword [esp + 0x48], ebx
jb 0x402c99
mov edx, dword [esp + 0x34]
push edx
call fcn.004390ba
add esp, 4
xor eax, eax
push 4
mov word [edi + esi*2], ax
call fcn.00439524
xor esi, esi
add esp, 4
cmp eax, esi
je 0x402cbb
lea ecx, [esp + 0x18]
mov dword [eax], ecx
mov dword [esp + 0x18], eax
jmp 0x402cbf
mov dword [esp + 0x18], esi
push edi
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.00402420
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x34]
push 0x7c
push eax
call fcn.00411390
add esp, 0xc
cmp dword [esp + 0x48], ebx
jb 0x402cfc
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004390ba
add esp, 4
push edi
call fcn.0043961a
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
add esp, 4
cmp eax, 3
jae 0x402d38
lea ecx, [esp + 0x18]
call fcn.00402b00
pop esi
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x3c
ret
mov eax, str.RIGHT_TO_LEFT
mov edi, 0x31
mov dword [esp + 0x10], eax
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402d50
sub eax, edx
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x1c], eax
call fcn.004082c0
add esp, 8
push eax
push 2
lea ecx, [esp + 0x20]
call fcn.004011a0
push eax
call fcn.004018c0
add esp, 8
lea ecx, [esp + 0x30]
mov bl, al
call fcn.00437940
test bl, bl
je 0x402d98
mov edi, 0x180031
push esi
lea ecx, [esp + 0x1c]
call fcn.004011a0
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x402db1
mov esi, dword [eax + 4]
jmp 0x402db4
lea esi, [eax + 4]
push 1
lea ecx, [esp + 0x1c]
call fcn.004011a0
cmp dword [eax + 0x18], ebx
jb 0x402dc9
mov eax, dword [eax + 4]
jmp 0x402dcc
add eax, 4
mov ecx, dword [esp + 0x50]
push ecx
push edi
push esi
push eax
call fcn.004010f0
add esp, 0x10
lea ecx, [esp + 0x18]
mov bl, al
call fcn.00402b00
pop esi
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x3c
ret