Function at 0x423c90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d3826
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x50f52c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
lea esi, [edi + 0x184]
mov dword [ebp - 0x2f4], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov dword [ebp - 0x2fc], eax
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [ebp - 0x2e8], edi
mov dword [ebp - 0x2f8], ebx
je 0x424678
mov edx, dword [ebp - 0x2f8]
push edx
mov ecx, esi
call fcn.004223a0
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004099d0
mov dword [ebp - 4], ebx
mov eax, dword [edi + 0x228]
mov eax, dword [eax]
mov ecx, dword [edi + 0x210]
mov dword [ebp - 0x2f0], ecx
mov dword [ebp - 0x2ec], eax
lea esp, [esp]
mov ecx, dword [ebp - 0x2f0]
mov esi, dword [edi + 0x228]
mov eax, dword [edi + 0x210]
cmp ecx, ebx
je 0x423d5a
cmp ecx, eax
je 0x423d65
call fcn.004b32e0
mov ecx, dword [ebp - 0x2f0]
cmp dword [ebp - 0x2ec], esi
je 0x424315
cmp ecx, ebx
jne 0x4242f9
call fcn.004b32e0
xor eax, eax
mov edx, dword [ebp - 0x2ec]
cmp edx, dword [eax + 0x18]
jne 0x423d90
call fcn.004b32e0
mov esi, dword [ebp - 0x2ec]
push 0xffffffffffffffff
xor ecx, ecx
add esi, 0xc
lea eax, [esi + 0x1c]
push ebx
mov word [ebp - 0x230], cx
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
call fcn.00401750
mov byte [ebp - 4], 1
push ebx
push 0x4e43e4
lea ecx, [ebp - 0x334]
call fcn.004163c0
mov byte [ebp - 4], 2
push ebx
push 0x4e43d8
push eax
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x460]
push eax
call fcn.0041abb0
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x234]
call fcn.00401750
mov byte [ebp - 4], 2
cmp dword [ebp - 0x448], 8
jb 0x423e26
mov ecx, dword [ebp - 0x45c]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x448], 7
mov dword [ebp - 0x44c], ebx
mov word [ebp - 0x45c], dx
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x330]
cmp edi, ebx
je 0x423e77
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423e77
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x423e77
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [ebp - 0x2f0]
cmp eax, ebx
jne 0x424300
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x423e9c
call fcn.004b32e0
push esi
lea edx, [ebp - 0x39c]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 6
push 0x4e4128
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 7
push ebx
push eax
lea ecx, [ebp - 0x33c]
call fcn.00422270
mov byte [ebp - 4], 8
push ebx
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x2e4]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.0041ac80
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2e4]
call fcn.00401750
mov byte [ebp - 4], 8
cmp dword [ebp - 0x410], 8
jb 0x423f27
mov ecx, dword [ebp - 0x424]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x410], 7
mov dword [ebp - 0x414], ebx
mov word [ebp - 0x424], dx
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x338]
cmp edi, ebx
je 0x423f78
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423f78
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x423f78
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x34c], 8
jb 0x423f94
mov eax, dword [ebp - 0x360]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34c], 7
mov dword [ebp - 0x350], ebx
mov word [ebp - 0x360], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x384], 8
jb 0x423fc9
mov edx, dword [ebp - 0x398]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov word [ebp - 0x398], ax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x384], 7
mov dword [ebp - 0x388], ebx
cmp eax, ebx
jne 0x424307
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x424007
call fcn.004b32e0
push esi
lea edx, [ebp - 0x444]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 0xc
push 0x4e4128
push eax
lea eax, [ebp - 0x3d4]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0xd
push ebx
push eax
lea ecx, [ebp - 0x328]
call fcn.00422270
mov byte [ebp - 4], 0xe
push ebx
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x2c8]
push edx
lea eax, [ebp - 0x40c]
push eax
call fcn.0041ac80
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c8]
call fcn.00401750
mov byte [ebp - 4], 0xe
cmp dword [ebp - 0x3f4], 8
jb 0x424092
mov ecx, dword [ebp - 0x408]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x3f4], 7
mov dword [ebp - 0x3f8], ebx
mov word [ebp - 0x408], dx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x324]
cmp edi, ebx
je 0x4240e3
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4240e3
mov edx, dword [edi]
mov eax, dword [edx + 4]
mov ecx, edi
call eax
lea ecx, [edi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4240e3
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x3bc], 8
jb 0x4240ff
mov eax, dword [ebp - 0x3d0]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3bc], 7
mov dword [ebp - 0x3c0], ebx
mov word [ebp - 0x3d0], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x42c], 8
jb 0x424134
mov edx, dword [ebp - 0x440]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov word [ebp - 0x440], ax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
cmp eax, ebx
jne 0x42430e
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x424172
call fcn.004b32e0
push esi
lea edx, [ebp - 0x3f0]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 0x12
push 0x4e4128
push eax
lea eax, [ebp - 0x3b8]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0x13
push ebx
push eax
lea ecx, [ebp - 0x344]
call fcn.00422270
mov byte [ebp - 4], 0x14
push ebx
lea ecx, [ebp - 0x234]
push ecx
push eax
lea edx, [ebp - 0x2ac]
push edx
lea eax, [ebp - 0x380]
push eax
call fcn.0041ac80
mov byte [ebp - 4], 0x15
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2ac]
call fcn.00401750
mov byte [ebp - 4], 0x14
cmp dword [ebp - 0x368], 8
jb 0x4241fd
mov ecx, dword [ebp - 0x37c]
push ecx
call fcn.004b29fa
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x368], edi
mov dword [ebp - 0x36c], ebx
mov word [ebp - 0x37c], dx
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x340]
cmp esi, ebx
je 0x42424f
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42424f
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42424f
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov byte [ebp - 4], 0x12
mov esi, 8
cmp dword [ebp - 0x3a0], esi
jb 0x42426f
mov eax, dword [ebp - 0x3b4]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3a0], edi
mov dword [ebp - 0x3a4], ebx
mov word [ebp - 0x3b4], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3d8], esi
jb 0x42429f
mov edx, dword [ebp - 0x3ec]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x3d8], edi
mov dword [ebp - 0x3dc], ebx
mov word [ebp - 0x3ec], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x21c], esi
jb 0x4242ce
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x2f0]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], dx
call fcn.004a2350
mov edi, dword [ebp - 0x2e8]
jmp 0x423d40
mov eax, dword [ecx]
jmp 0x423d80
mov eax, dword [eax]
jmp 0x423e8c
mov eax, dword [eax]
jmp 0x423ff7
mov eax, dword [eax]
jmp 0x424162
xor eax, eax
cmp dword [ebp - 0x2d0], ebx
mov esi, 7
setne al
cmp eax, ebx
jne 0x424363
push 1
xor eax, eax
push 0x4e253c
lea ecx, [ebp - 0x318]
mov dword [ebp - 0x300], esi
mov dword [ebp - 0x304], ebx
mov word [ebp - 0x314], ax
call fcn.00401860
lea eax, [ebp - 0x318]
mov byte [ebp - 4], 0x18
or dword [ebp - 0x2f4], 1
jmp 0x424369
lea eax, [ebp - 0x2e4]
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x24c], cx
push eax
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], ebx
call fcn.00401750
mov dword [ebp - 4], 0x1a
test byte [ebp - 0x2f4], 1
je 0x4243d1
and dword [ebp - 0x2f4], 0xfffffffe
cmp dword [ebp - 0x300], 8
jb 0x4243bc
mov edx, dword [ebp - 0x314]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x300], esi
mov dword [ebp - 0x304], ebx
mov word [ebp - 0x314], ax
xor eax, eax
cmp dword [ebp - 0x2b4], ebx
setne al
cmp eax, ebx
je 0x4245fb
mov esi, dword [edi + 0x33c]
mov eax, esi
cmp eax, esi
jae 0x4243f0
mov edx, esi
cmp esi, 6
jb 0x4243fc
mov edx, 6
cmp dword [edi + 0x340], 8
jb 0x42440d
mov ecx, dword [edi + 0x32c]
jmp 0x424413
lea ecx, [edi + 0x32c]
mov eax, str.64_bit
cmp edx, ebx
jbe 0x42443d
lea esp, [esp]
mov di, word [ecx]
cmp di, word [eax]
jne 0x424590
add ecx, 2
add eax, 2
sub edx, 1
jne 0x424420
mov edi, dword [ebp - 0x2e8]
cmp esi, 6
jb 0x42445b
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
jne 0x42445b
cmp dword [ebp - 0x290], ebx
je 0x42445b
call fcn.00427480
push 0x206
lea eax, [ebp - 0x216]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x218], dx
call fcn.004b32f0
mov eax, dword [ebp - 0x24c]
add esp, 0xc
cmp dword [ebp - 0x238], 8
jae 0x42448e
lea eax, [ebp - 0x24c]
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x270]
cmp eax, 0xffffffff
jne 0x4244b1
mov eax, 0x493e0
lea edx, [ebp - 0x348]
push edx
push 1
push 1
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x31c], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2ac]
mov esi, 7
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], ax
call fcn.00401750
mov byte [ebp - 4], 0x1b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x320], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x2c8]
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push edx
mov word [ecx + 4], ax
call fcn.00401750
mov byte [ebp - 4], 0x1c
sub esp, 0x1c
mov ecx, esp
xor eax, eax
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
mov word [ecx + 4], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x32c], esp
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x424536
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
call fcn.00401860
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1a
call fcn.00453920
mov ecx, dword [ebp - 0x2fc]
mov dword [ecx], eax
mov edx, dword [edi + 0x33c]
mov eax, edx
cmp eax, edx
jae 0x424573
mov esi, edx
cmp edx, 6
jb 0x42457f
mov esi, 6
cmp dword [edi + 0x340], 8
jb 0x4245af
mov ecx, dword [edi + 0x32c]
jmp 0x4245b5
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x424437
mov edi, dword [ebp - 0x2e8]
jmp 0x42444a
lea ecx, [edi + 0x32c]
mov eax, str.64_bit
cmp esi, ebx
jbe 0x4245dd
mov edi, edi
mov di, word [ecx]
cmp di, word [eax]
jne 0x42469b
add ecx, 2
add eax, 2
sub esi, 1
jne 0x4245c0
mov edi, dword [ebp - 0x2e8]
cmp edx, 6
jb 0x4245fb
xor eax, eax
cmp edx, 6
setne al
cmp eax, ebx
jne 0x4245fb
cmp dword [ebp - 0x290], ebx
je 0x4245fb
call fcn.004260e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x238], 8
jb 0x424616
mov edx, dword [ebp - 0x24c]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x238], 7
mov dword [ebp - 0x23c], ebx
mov word [ebp - 0x24c], ax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e4]
call fcn.00408020
mov ecx, dword [edi + 0x194]
sub ecx, dword [edi + 0x190]
inc dword [ebp - 0x2f8]
lea esi, [edi + 0x184]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp dword [ebp - 0x2f8], ecx
jb 0x423d02
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 - 0x10]
xor ecx, ebp
call fcn.004b3057
mov esp, ebp
pop ebp
ret 4
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
je 0x4245d7
mov edi, dword [ebp - 0x2e8]
jmp 0x4245ea