Function at 0x442010
Capabilities:
Query environment variable
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5a5200
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x61ac94]
xor eax, esp
mov dword [esp + 0x4d4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x61ac94]
xor eax, esp
push eax
lea eax, [esp + 0x4ec]
mov dword fs:[0], eax
xor edi, edi
mov ebp, ecx
push edi
mov dword [esp + 0x44], ebp
mov dword [esp + 0x18], edi
xor esi, esi
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.004409c0
mov eax, dword [ebp + 0x18c]
add ebp, 0x18c
cmp eax, edi
je 0x442080
mov dword [ebp], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x61df54]
cmp eax, edi
je 0x44259c
push ebp
push 0x61
call eax
cmp eax, edi
jl 0x44259c
cmp dword [ebp], edi
je 0x44259c
push 0x208
lea eax, [esp + 0x2e4]
push edi
push eax
call fcn.004e5fc0
add esp, 0xc
push 0x104
lea ecx, [esp + 0x2e4]
push ecx
push 0x5c3b68
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebp
call fcn.0043e770
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
mov dword [esp + 0x4f8], edi
call edx
or ebx, 0xffffffff
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4f4], ebx
call fcn.0043e0b0
lea eax, [esp + 0x2c]
push eax
mov ecx, ebp
call fcn.0043e770
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
mov dword [esp + 0x4f8], 1
call edx
mov esi, eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x4f4], ebx
call fcn.0043e0b0
xor ebx, ebx
mov dword [esp + 0x24], ebx
cmp esi, edi
jbe 0x442597
mov dword [esp + 0x44], edi
jmp 0x442154
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x18], edi
mov dword [esp + 0x4f4], 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea eax, [esp + 0x48]
push eax
mov ecx, ebp
call fcn.0043e770
mov esi, dword [eax]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x4f4], 6
cmp eax, edi
je 0x442195
mov dword [esp + 0x18], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x20]
push ebx
push esi
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x4f4], 5
call fcn.0043e0b0
lea eax, [esp + 0xc8]
push eax
mov ecx, ebp
call fcn.0043e770
mov esi, dword [eax]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4f4], 7
cmp eax, edi
je 0x4421e5
mov dword [esp + 0x1c], edi
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], edi
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
push ebx
push esi
call edx
lea ecx, [esp + 0xc8]
mov byte [esp + 0x4f4], 5
call fcn.0043e0b0
cmp dword [esp + 0x18], edi
je 0x4422a3
lea eax, [esp + 0x98]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043e810
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
or dword [esp + 0x14], 1
push eax
mov byte [esp + 0x4f8], 8
call edx
cmp eax, 4
je 0x442272
lea eax, [esp + 0xb8]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043e810
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
or dword [esp + 0x14], 2
push eax
mov dword [esp + 0x4f8], 9
call edx
cmp eax, 2
jne 0x4422a3
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x1c]
call fcn.0043e810
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
or dword [esp + 0x14], 4
push eax
mov dword [esp + 0x4f8], 0xa
call edx
cmp eax, 2
jne 0x4422a3
mov bl, 1
jmp 0x4422a5
xor bl, bl
test byte [esp + 0x14], 4
mov dword [esp + 0x4f4], 9
je 0x4422c5
and dword [esp + 0x14], 0xfffffffb
lea ecx, [esp + 0x78]
call fcn.0043e130
test byte [esp + 0x14], 2
mov dword [esp + 0x4f4], 8
je 0x4422e8
and dword [esp + 0x14], 0xfffffffd
lea ecx, [esp + 0xb8]
call fcn.0043e130
test byte [esp + 0x14], 1
mov dword [esp + 0x4f4], 5
je 0x44230b
and dword [esp + 0x14], 0xfffffffe
lea ecx, [esp + 0x98]
call fcn.0043e130
test bl, bl
je 0x442539
push 0x208
lea eax, [esp + 0xdc]
push edi
push eax
call fcn.004e5fc0
add esp, 0xc
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 0x1c]
call fcn.0043e810
mov esi, dword [eax]
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4f4], 0xb
cmp eax, edi
je 0x442355
mov dword [esp + 0x20], edi
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
lea edx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov ecx, dword [esi]
mov eax, dword [ecx + 0x18]
push edx
push esi
call eax
lea ecx, [esp + 0x58]
mov byte [esp + 0x4f4], 5
call fcn.0043e130
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x24]
call fcn.0043e740
mov eax, dword [eax]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0x28]
mov byte [esp + 0x4f8], 0xc
call eax
push eax
push 0x208
lea ecx, [esp + 0xe0]
push ecx
call fcn.0041c6a0
lea ecx, [esp + 0x68]
mov byte [esp + 0x4f4], 5
call fcn.0043e170
lea edx, [esp + 0xd8]
push 0x5c
push edx
call fcn.004e5d7c
add esp, 8
cmp eax, edi
je 0x4423d6
xor ecx, ecx
mov word [eax], cx
lea edx, [esp + 0xd8]
push edx
lea ecx, [esp + 0x2c]
call fcn.0040e080
lea ecx, [esp + 0x28]
mov byte [esp + 0x4f4], 0xd
call fcn.00414200
cmp dword [esp + 0x1c], edi
je 0x4425c6
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x20]
call fcn.0043e880
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x48]
push eax
mov byte [esp + 0x4f8], 0xe
call edx
lea ecx, [esp + 0x88]
mov esi, eax
mov byte [esp + 0x4f4], 0xd
call fcn.0043e1b0
cmp esi, edi
jne 0x442511
call fcn.004a581f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
je 0x4425e8
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0xa8]
mov dword [esp + 0x2c], ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.0043e810
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push eax
mov byte [esp + 0x4f8], 0x10
call edx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x30], eax
mov byte [esp + 0x4f4], 0xf
call fcn.0043e130
lea eax, [esp + 0xd8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4424b4
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xdc]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040c660
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x44]
add ecx, 0x174
call fcn.00441e10
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x4f4], 0xd
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x442511
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0x4f4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442539
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov byte [esp + 0x4f4], 3
cmp eax, edi
je 0x442551
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x4f4], 2
cmp eax, edi
je 0x442569
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4f4], 0xffffffff
cmp eax, edi
je 0x442584
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x3c]
jb 0x442150
mov esi, 1
mov eax, esi
mov ecx, dword [esp + 0x4ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4d4]
xor ecx, esp
call fcn.004e5fb0
add esp, 0x4e4
ret
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2e0]
push eax
push ecx
call fcn.004e8728
add esp, 8
test eax, eax
jne 0x442443
jmp 0x442511
push 0x80004005
call fcn.0040b390
int3