Function at 0x42f2d0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x452cbf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x2c], ebp
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x78], 1
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebp
jl 0x42f318
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42f32b
mov eax, dword [0x45c050]
push ecx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.00425f80
lea ecx, [esp + 0x12]
lea edx, [esp + 0x13]
push ecx
push ebp
push edx
lea ecx, [esp + 0x6c]
mov byte [esp + 0x84], 2
call fcn.0042b6d0
mov byte [esp + 0x78], 3
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
cmp eax, ebp
je 0x42f769
mov cl, byte [eax]
mov dword [esp + 0x24], eax
test cl, cl
je 0x42f769
mov al, byte [esp + 0x84]
mov dword [esp + 0x44], ebp
mov byte [esp + 0x40], al
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov cl, byte [esp + 0x84]
mov dword [esp + 0x54], ebp
mov byte [esp + 0x50], cl
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
mov edx, dword [0x45c050]
mov eax, 0x45d294
test eax, eax
mov byte [esp + 0x78], 5
mov dword [esp + 0x1c], edx
je 0x42f403
mov ecx, eax
shr ecx, 0x10
jne 0x42f3cb
xor eax, eax
mov edx, 0x45d294
mov ax, dx
lea ecx, [esp + 0x1c]
push eax
call fcn.00427770
jmp 0x42f403
push 0x45d294
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
cmp esi, ebp
je 0x42f403
push esi
lea ecx, [esp + 0x20]
call fcn.00425830
test eax, eax
je 0x42f403
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov eax, ecx
mov esi, 0x45d294
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x1c]
push ecx
push edx
lea ecx, [esp + 0x58]
mov byte [esp + 0x80], 6
call fcn.0042b2a0
mov eax, dword [esp + 0x1c]
mov edx, dword [0x45c054]
mov byte [esp + 0x78], 5
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f456
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42f45c
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
jmp 0x42f45c
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x50]
push 1
lea ecx, [esp + 0x44]
push eax
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.00425b80
call fcn.0042afa0
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp eax, ebp
je 0x42f6e7
mov ecx, dword [esp + 0x48]
sub ecx, eax
and ecx, 0xfffffffc
cmp ecx, 8
jne 0x42f6e7
mov edx, dword [0x45c050]
mov dword [esp + 0x20], edx
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push eax
push str.___s__
push ecx
mov byte [esp + 0x84], 7
call fcn.00426920
mov ecx, dword [esp + 0x50]
add esp, 0xc
mov eax, dword [ecx + 4]
cmp dword [eax - 0xc], ebp
jl 0x42f4e2
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42f4f9
mov edx, dword [0x45c050]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 4]
push eax
lea ecx, [esp + 0x18]
call fcn.00425f80
mov ecx, dword [0x45c050]
push 1
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
mov byte [esp + 0x7c], 8
call fcn.00425830
test eax, eax
je 0x42f51e
mov edx, dword [esp + 0x1c]
mov byte [edx], 0x5c
lea eax, [esp + 0x28]
push 1
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 9
call fcn.004263e0
mov ecx, dword [esp + 0x1c]
mov eax, dword [eax]
push ecx
push eax
call fcn.00445d0b
mov ecx, dword [0x45c054]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x28]
sete bl
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42f576
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42f576
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.004447ea
add esp, 4
mov eax, dword [esp + 0x1c]
mov edx, dword [0x45c054]
mov byte [esp + 0x78], 8
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f5a6
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x42f5a6
mov edx, dword [esp + 0x1c]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
test bl, bl
je 0x42f5e7
mov eax, dword [esp + 0x14]
mov edi, dword [eax - 8]
lea esi, [edi - 1]
cmp esi, ebp
jge 0x42f5ba
xor esi, esi
cmp esi, edi
jge 0x42f5e7
lea ecx, [esp + 0x14]
call fcn.00425a40
mov ecx, dword [esp + 0x14]
mov eax, edi
add ecx, esi
sub eax, esi
push eax
lea edx, [ecx + 1]
push edx
push ecx
call fcn.004457e0
mov eax, dword [esp + 0x20]
add esp, 0xc
dec edi
mov dword [eax - 8], edi
mov ecx, dword [0x45c050]
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 0xa
call fcn.0042b7e0
lea ecx, [esp + 0x38]
push eax
push ecx
lea ecx, [esp + 0x68]
mov byte [esp + 0x80], 0xb
call fcn.0042b5d0
mov esi, dword [eax]
lea ecx, [esp + 0x30]
call fcn.004037c0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 8
call fcn.00429590
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x14]
add esi, 0x10
cmp eax, ecx
je 0x42f68e
cmp dword [eax - 0xc], ebp
jge 0x42f65c
mov edx, dword [0x45c054]
add eax, 0xfffffff4
cmp eax, edx
jne 0x42f661
cmp dword [ecx - 0xc], ebp
jge 0x42f66f
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.00403580
jmp 0x42f68a
mov ecx, esi
call fcn.00425890
mov eax, dword [esp + 0x14]
mov dword [esi], eax
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [esp + 0x14]
mov eax, dword [0x45c054]
lea edx, [ecx - 0xc]
cmp edx, eax
je 0x42f6b8
add ecx, 0xfffffff4
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f6b8
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.004447ea
add esp, 4
mov eax, dword [esp + 0x20]
mov edx, dword [0x45c054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f6e7
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f6e7
mov edx, dword [esp + 0x20]
lea eax, [edx - 0xc]
push eax
call fcn.004447ea
add esp, 4
mov esi, dword [esp + 0x24]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x58]
not ecx
dec ecx
push eax
lea esi, [esi + ecx + 1]
mov ecx, dword [esp + 0x58]
push ecx
lea ecx, [esp + 0x58]
mov dword [esp + 0x2c], esi
call fcn.0042b540
mov edx, dword [esp + 0x54]
push edx
call fcn.004447ea
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add esp, 4
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
push eax
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 3
call fcn.0042b540
mov edx, dword [esp + 0x44]
push edx
call fcn.004447ea
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov al, byte [esi]
add esp, 4
test al, al
jne 0x42f368
cmp dword [esp + 0x88], ebp
je 0x42f8a5
lea eax, [esp + 0x88]
lea ecx, [esp + 0x60]
push eax
call fcn.00403020
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x42f9ae
mov edi, dword [sym.imp.USER32.dll_CharLowerA]
mov bl, 0xc
mov ecx, dword [0x45c050]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x45c79c
push eax
mov byte [esp + 0x84], bl
call fcn.00426920
add esp, 0xc
lea ecx, [esp + 0x1c]
call fcn.00425a40
mov ecx, dword [esp + 0x1c]
push ecx
call edi
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
cmp edx, ebp
jl 0x42f7fb
push eax
mov dword [esp + 0x8c], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x42f815
mov edx, dword [0x45c050]
push ecx
lea ecx, [esp + 0x8c]
mov dword [esp + 0x8c], edx
call fcn.00425f80
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 0xd
call fcn.00425a40
mov eax, dword [esp + 0x88]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ebp
push ecx
lea ecx, [esp + 0x90]
call fcn.0042ab50
mov esi, eax
cmp esi, 0xffffffff
je 0x42f86d
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov eax, dword [edx - 8]
push eax
push esi
call fcn.00427000
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x18]
mov eax, dword [eax + 0x10]
push eax
push esi
call fcn.0042ab90
lea ecx, [esp + 0x88]
call fcn.00429590
lea ecx, [esp + 0x1c]
mov byte [esp + 0x78], 3
call fcn.00429590
lea ecx, [esp + 0x24]
call fcn.0042ba50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jne 0x42f7a6
jmp 0x42f9ae
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x64]
call fcn.00403020
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
mov dword [esp + 0x24], eax
je 0x42f9ae
mov edi, dword [sym.imp.USER32.dll_CharLowerA]
mov bl, 0xf
mov edx, dword [0x45c050]
mov dword [esp + 0x88], edx
mov eax, dword [eax + 0x10]
lea ecx, [esp + 0x88]
push eax
push 0x45c79c
push ecx
mov byte [esp + 0x84], 0xe
call fcn.00426920
add esp, 0xc
lea ecx, [esp + 0x88]
call fcn.00425a40
mov edx, dword [esp + 0x88]
push edx
call edi
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
call fcn.00425750
lea ecx, [esp + 0x20]
mov byte [esp + 0x78], bl
call fcn.00425a40
mov ecx, dword [esp + 0x20]
push ecx
call edi
mov edx, dword [esp + 0x88]
push ebp
push edx
lea ecx, [esp + 0x28]
call fcn.0042ab50
mov esi, eax
cmp esi, 0xffffffff
je 0x42f97b
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0x18]
mov eax, dword [eax - 8]
push eax
push esi
call fcn.00427000
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0xc]
lea ecx, [esp + 0x18]
push eax
push esi
call fcn.0042ab90
lea ecx, [esp + 0x20]
call fcn.00429590
lea ecx, [esp + 0x88]
mov byte [esp + 0x78], 3
call fcn.00429590
lea ecx, [esp + 0x24]
call fcn.0042ba50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x64]
cmp eax, ecx
jne 0x42f8d5
mov esi, dword [esp + 0x80]
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00425750
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x60]
mov byte [esp + 0x78], 2
call fcn.00424ee0
lea ecx, [esp + 0x18]
call fcn.00429590
lea ecx, [esp + 0x84]
call fcn.00429590
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret