Function at 0x40a4e0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x4446f9
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4571dc]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
mov eax, dword [0x4571dc]
xor eax, esp
push eax
lea eax, [esp + 0x224]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x22]
push ecx
mov dword [esp + 0x238], 0
mov word [esp + 0x24], ax
call fcn.00428a10
add esp, 0xc
push 0x44760c
lea ecx, [esp + 0xc]
call fcn.004018a0
push 0x44760c
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 1
call fcn.004018a0
push 0x103
lea edx, [esp + 0x1c]
push edx
push str._ALLUSERSPROFILE_
mov byte [esp + 0x238], 2
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x40a58a
or esi, 0xffffffff
jmp 0x40a6ee
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x14]
push 0x447b18
push edx
call fcn.00407d70
add esp, 0xc
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x230], 3
call fcn.00401770
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or esi, 0xffffffff
mov byte [esp + 0x22c], 2
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a5e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a5e7
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401610
push 1
push 0x44764c
lea ecx, [esp + 0x10]
call fcn.004024f0
push 3
push 0x447a48
lea ecx, [esp + 0x10]
call fcn.004024f0
push 1
push 0x44764c
lea ecx, [esp + 0x10]
call fcn.004024f0
mov eax, dword [esp + 0xc]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.004024f0
mov edx, dword [esp + 8]
push 0x447688
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0042950a
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
jne 0x40a6e5
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov byte [esp + 0x22c], 1
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a68d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x22c], 0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a6b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x234]
add eax, 0xfffffff0
mov dword [esp + 0x22c], esi
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40a6db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40a765
push eax
call fcn.0042910b
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov edx, esi
lea ecx, [eax + 0xc]
mov byte [esp + 0x22c], 1
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a715
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov edx, esi
lea ecx, [eax + 0xc]
mov byte [esp + 0x22c], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a73c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov dword [esp + 0x22c], esi
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x40a763
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x224]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00428852
add esp, 0x228
ret 4