Function at 0x423230
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d36a6
mov eax, dword fs:[0]
push eax
sub esp, 0x450
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
xor ebx, ebx
lea esi, [ecx + 0x16c]
mov dword [ebp - 0x2e8], ecx
mov dword [ebp - 0x2f4], ebx
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x2f8], ebx
je 0x423c6d
mov ecx, dword [ebp - 0x2f8]
push ecx
mov ecx, esi
call fcn.004223a0
push eax
lea ecx, [ebp - 0x2e4]
call fcn.004099d0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2e8]
mov eax, dword [ecx + 0x228]
mov eax, dword [eax]
mov edi, dword [ecx + 0x210]
mov dword [ebp - 0x2f0], edi
mov dword [ebp - 0x2ec], eax
mov eax, dword [ebp - 0x2e8]
mov esi, dword [eax + 0x228]
mov eax, dword [eax + 0x210]
cmp edi, ebx
je 0x4232ee
cmp edi, eax
je 0x4232f3
call fcn.004b32e0
cmp dword [ebp - 0x2ec], esi
je 0x4238a3
cmp edi, ebx
jne 0x423887
call fcn.004b32e0
xor eax, eax
mov edx, dword [ebp - 0x2ec]
cmp edx, dword [eax + 0x18]
jne 0x42331e
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 - 0x330]
call fcn.004163c0
mov byte [ebp - 4], 2
push ebx
push 0x4e43d8
push eax
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x45c]
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 - 0x444], 8
jb 0x4233b4
mov ecx, dword [ebp - 0x458]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x444], 7
mov dword [ebp - 0x448], ebx
mov word [ebp - 0x458], dx
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x32c]
cmp edi, ebx
je 0x423405
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423405
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 0x423405
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov eax, dword [ebp - 0x2f0]
cmp eax, ebx
jne 0x42388e
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x42342a
call fcn.004b32e0
push esi
lea edx, [ebp - 0x398]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 6
push 0x4e4128
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 7
push ebx
push eax
lea ecx, [ebp - 0x338]
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 - 0x424]
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 - 0x40c], 8
jb 0x4234b5
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x40c], 7
mov dword [ebp - 0x410], ebx
mov word [ebp - 0x420], dx
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x334]
cmp edi, ebx
je 0x423506
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423506
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 0x423506
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov byte [ebp - 4], 6
cmp dword [ebp - 0x348], 8
jb 0x423522
mov eax, dword [ebp - 0x35c]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x348], 7
mov dword [ebp - 0x34c], ebx
mov word [ebp - 0x35c], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x380], 8
jb 0x423557
mov edx, dword [ebp - 0x394]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov word [ebp - 0x394], ax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x380], 7
mov dword [ebp - 0x384], ebx
cmp eax, ebx
jne 0x423895
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x423595
call fcn.004b32e0
push esi
lea edx, [ebp - 0x440]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 0xc
push 0x4e4128
push eax
lea eax, [ebp - 0x3d0]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0xd
push ebx
push eax
lea ecx, [ebp - 0x324]
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 - 0x408]
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 - 0x3f0], 8
jb 0x423620
mov ecx, dword [ebp - 0x404]
push ecx
call fcn.004b29fa
add esp, 4
xor edx, edx
mov dword [ebp - 0x3f0], 7
mov dword [ebp - 0x3f4], ebx
mov word [ebp - 0x404], dx
mov byte [ebp - 4], 0xd
mov edi, dword [ebp - 0x320]
cmp edi, ebx
je 0x423671
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x423671
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 0x423671
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x3b8], 8
jb 0x42368d
mov eax, dword [ebp - 0x3cc]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x3b8], 7
mov dword [ebp - 0x3bc], ebx
mov word [ebp - 0x3cc], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x428], 8
jb 0x4236c2
mov edx, dword [ebp - 0x43c]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov word [ebp - 0x43c], ax
mov eax, dword [ebp - 0x2f0]
mov dword [ebp - 0x428], 7
mov dword [ebp - 0x42c], ebx
cmp eax, ebx
jne 0x42389c
call fcn.004b32e0
xor eax, eax
mov ecx, dword [ebp - 0x2ec]
cmp ecx, dword [eax + 0x18]
jne 0x423700
call fcn.004b32e0
push esi
lea edx, [ebp - 0x3ec]
push 0x4e4130
push edx
call fcn.00401a30
mov byte [ebp - 4], 0x12
push 0x4e4128
push eax
lea eax, [ebp - 0x3b4]
push eax
call fcn.00401b00
add esp, 0x18
mov byte [ebp - 4], 0x13
push ebx
push eax
lea ecx, [ebp - 0x340]
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 - 0x37c]
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 - 0x364], 8
jb 0x42378b
mov ecx, dword [ebp - 0x378]
push ecx
call fcn.004b29fa
add esp, 4
mov edi, 7
xor edx, edx
mov dword [ebp - 0x364], edi
mov dword [ebp - 0x368], ebx
mov word [ebp - 0x378], dx
mov byte [ebp - 4], 0x13
mov esi, dword [ebp - 0x33c]
cmp esi, ebx
je 0x4237dd
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4237dd
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 0x4237dd
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 - 0x39c], esi
jb 0x4237fd
mov eax, dword [ebp - 0x3b0]
push eax
call fcn.004b29fa
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x39c], edi
mov dword [ebp - 0x3a0], ebx
mov word [ebp - 0x3b0], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3d4], esi
jb 0x42382d
mov edx, dword [ebp - 0x3e8]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x3d4], edi
mov dword [ebp - 0x3d8], ebx
mov word [ebp - 0x3e8], ax
mov byte [ebp - 4], bl
cmp dword [ebp - 0x21c], esi
jb 0x42385c
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 - 0x2f0]
jmp 0x4232d4
mov eax, dword [edi]
jmp 0x42330e
mov eax, dword [eax]
jmp 0x42341a
mov eax, dword [eax]
jmp 0x423585
mov eax, dword [eax]
jmp 0x4236f0
xor eax, eax
cmp dword [ebp - 0x2d0], ebx
mov esi, 7
setne al
cmp eax, ebx
jne 0x4238f1
push 1
xor eax, eax
push 0x4e253c
lea ecx, [ebp - 0x314]
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x300], ebx
mov word [ebp - 0x310], ax
call fcn.00401860
lea eax, [ebp - 0x314]
mov byte [ebp - 4], 0x18
or dword [ebp - 0x2f4], 1
jmp 0x4238f7
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 0x42395f
and dword [ebp - 0x2f4], 0xfffffffe
cmp dword [ebp - 0x2fc], 8
jb 0x42394a
mov edx, dword [ebp - 0x310]
push edx
call fcn.004b29fa
add esp, 4
xor eax, eax
mov dword [ebp - 0x2fc], esi
mov dword [ebp - 0x300], ebx
mov word [ebp - 0x310], ax
xor eax, eax
cmp dword [ebp - 0x2b4], ebx
setne al
cmp eax, ebx
je 0x423be7
mov ecx, dword [ebp - 0x2e8]
mov esi, dword [ecx + 0x33c]
mov eax, esi
mov edx, esi
cmp esi, 6
jb 0x42398c
mov edx, 6
cmp dword [ecx + 0x340], 8
jb 0x42399d
mov ecx, dword [ecx + 0x32c]
jmp 0x4239a3
add ecx, 0x32c
mov eax, str.64_bit
cmp edx, ebx
jbe 0x4239d5
lea esp, [esp]
mov di, word [ecx]
cmp di, word [eax]
jne 0x4239c5
add ecx, 2
add eax, 2
sub edx, 1
jne 0x4239b0
jmp 0x4239d5
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
jne 0x4239f3
cmp esi, 6
jb 0x4239f3
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
jne 0x4239f3
cmp dword [ebp - 0x290], ebx
je 0x4239f3
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 0x423a26
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]
lea edx, [ebp - 0x328]
push edx
push 1
push 1
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x344], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2ac]
mov esi, 7
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.00401750
mov byte [ebp - 4], 0x1b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x318], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c8]
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
push eax
mov word [ecx + 4], dx
call fcn.00401750
mov byte [ebp - 4], 0x1c
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x14], ebx
lea eax, [ebp - 0x218]
mov word [ecx + 4], dx
mov dword [ebp - 0x31c], esp
lea edx, [eax + 2]
mov si, word [eax]
add eax, 2
cmp si, bx
jne 0x423ac4
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401860
mov byte [ebp - 4], 0x1d
mov byte [ebp - 4], 0x1a
call fcn.00453920
cmp eax, 0xbc2
jne 0x423b6a
mov esi, dword [ebp - 0x278]
mov edx, esi
cmp esi, 6
jb 0x423b06
mov edx, 6
cmp dword [ebp - 0x274], 8
mov ecx, dword [ebp - 0x288]
jae 0x423b1b
lea ecx, [ebp - 0x288]
mov eax, 0x4e43b8
cmp edx, ebx
jbe 0x423b49
mov di, word [ecx]
cmp di, word [eax]
jne 0x423b39
add ecx, 2
add eax, 2
sub edx, 1
jne 0x423b24
jmp 0x423b49
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
jne 0x423b5a
cmp esi, 6
jb 0x423b5a
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
je 0x423b6a
mov edx, dword [ebp - 0x2e8]
mov dword [edx + 0x34c], 1
mov ecx, dword [ebp - 0x2e8]
mov esi, dword [ecx + 0x33c]
mov eax, esi
mov edx, esi
cmp esi, 6
jb 0x423b84
mov edx, 6
cmp dword [ecx + 0x340], 8
jb 0x423b95
mov ecx, dword [ecx + 0x32c]
jmp 0x423b9b
add ecx, 0x32c
mov eax, str.64_bit
cmp edx, ebx
jbe 0x423bc9
mov di, word [ecx]
cmp di, word [eax]
jne 0x423bb9
add ecx, 2
add eax, 2
sub edx, 1
jne 0x423ba4
jmp 0x423bc9
mov cx, di
cmp cx, word [eax]
sbb eax, eax
and eax, 0xfffffffe
inc eax
cmp eax, ebx
jne 0x423be7
cmp esi, 6
jb 0x423be7
xor eax, eax
cmp esi, 6
setne al
cmp eax, ebx
jne 0x423be7
cmp dword [ebp - 0x290], ebx
je 0x423be7
call fcn.004260e0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x238], 8
jb 0x423c02
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 esi, dword [ebp - 0x2e8]
mov ecx, dword [esi + 0x17c]
sub ecx, dword [esi + 0x178]
mov edi, dword [ebp - 0x2f8]
add esi, 0x16c
mov eax, 0xdd67c8a7
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [ebp - 0x2f8], edi
cmp edi, ecx
jb 0x423297
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