Function at 0x409c70
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4859d0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x4a1400]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x40], esi
push str.ALLUSERSPROFILE
mov dword [ebp - 0x3c], 0
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
add esp, 4
test edx, edx
je 0x409d07
mov ecx, edx
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea edi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x409cf0
sub ecx, edi
push ecx
push edx
mov ecx, esi
call fcn.00412900
jmp 0x409ed9
push ecx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x38]
push 0x104
push dword [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x24], 7
movups xmmword [ebp - 0x38], xmm0
push 0x104
mov word [ebp - 0x38], ax
mov dword [ebp - 0x3c], 4
call fcn.00412e90
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
cmova eax, dword [ebp - 0x38]
push eax
push ecx
mov dword [ebp - 0x18], ecx
call fcn.004834f5
mov ecx, dword [ebp - 0x28]
mov esi, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x4c], ecx
cmp esi, ecx
ja 0x409d83
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
mov dword [ebp - 0x28], esi
cmova eax, dword [ebp - 0x38]
xor ecx, ecx
mov word [eax + esi*2], cx
jmp 0x409dd8
mov edi, dword [ebp - 0x24]
mov edx, esi
mov eax, edi
sub edx, ecx
sub eax, ecx
cmp edx, eax
ja 0x409dc7
cmp edi, 7
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x38]
cmova eax, dword [ebp - 0x38]
mov dword [ebp - 0x50], eax
lea edi, [eax + ecx*2]
test edx, edx
je 0x409db9
xor eax, eax
mov ecx, edx
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
mov ecx, dword [ebp - 0x4c]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x409dd5
push ecx
push edx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x38]
push edx
call fcn.00412e90
mov edx, dword [ebp - 0x20]
cmp esi, dword [ebp - 0x18]
jae 0x409d46
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], 0x4a1480
mov dword [ebp - 0x3c], 2
test edx, edx
jne 0x409ef9
cmp dword [ebp - 0x24], 7
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0x28]
cmova eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
call fcn.00483322
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 2
xorps xmm0, xmm0
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x3c], 0x42
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
test edi, edi
je 0x409e9d
cmp edi, 0x7fffffff
ja 0x409f01
push 0
push 0
push edi
push dword [ebp - 0x20]
push eax
call fcn.00483374
mov dword [ebp - 0x44], eax
test edx, edx
jne 0x409f06
push edx
push eax
mov ecx, esi
call fcn.00410a30
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x409e89
mov eax, dword [esi]
push dword [ebp - 0x44]
push eax
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x18]
call fcn.00483374
test edx, edx
jne 0x409f0d
mov ecx, dword [ebp - 0x24]
cmp ecx, 7
jbe 0x409ed9
mov edx, dword [ebp - 0x38]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x409ecf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x409ecf
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00483cf3
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004839af
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
lea edx, [ebp - 0x1c]
call fcn.00404b60
call fcn.00401f70
mov ecx, edx
call fcn.00402200
mov ecx, edx
call fcn.00402200
int3