Function at 0x404370
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458d4f
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x46600c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push ecx
lea edx, [ebp + 8]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00412060
add esp, 4
push 9
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0xc0]
push str.Downloads
push dword [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.004136d0
add esp, 0xc
push str.USERPROFILE
mov byte [ebp - 4], 2
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edx, eax
mov byte [ebp - 0x90], 0
mov ecx, edx
add esp, 4
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404400
sub ecx, esi
push ecx
push edx
push dword [ebp - 0x90]
lea ecx, [ebp - 0xa8]
call fcn.004136d0
add esp, 0xc
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 3
push eax
lea edx, [ebp - 0xa8]
lea ecx, [ebp - 0x5c]
call fcn.004021d0
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x94]
cmp ecx, 8
jb 0x40447b
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404471
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4044ce
push ecx
push edx
call fcn.00457642
add esp, 8
xor eax, eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
mov word [ebp - 0xa8], ax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xac]
cmp ecx, 8
jb 0x4044de
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4044d4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4044d4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00457642
add esp, 8
xor eax, eax
mov dword [ebp - 0xb0], 0
mov word [ebp - 0xc0], ax
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x5c]
mov dword [ebp - 0xac], 7
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403fd0
add esp, 4
mov byte [ebp - 4], 7
cmp dword [ebp - 0x1c], 0
jne 0x40464d
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x404555
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40454b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x4045a3
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404599
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 0x10
jb 0x4045eb
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4045e1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x404631
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404627
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004571c9
mov esp, ebp
pop ebp
ret
push 6
mov byte [ebp - 0x90], 0
lea ecx, [ebp - 0xc0]
push str.shared
push dword [ebp - 0x90]
call fcn.004136d0
add esp, 0xc
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 8
call fcn.004039b0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
push ecx
mov edx, eax
lea ecx, [ebp - 0x8c]
call fcn.004021d0
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0xcc]
cmp ecx, 8
jb 0x4046d9
mov edx, dword [ebp - 0xe0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4046cf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40472c
push ecx
push edx
call fcn.00457642
add esp, 8
xor eax, eax
mov dword [ebp - 0xd0], 0
mov dword [ebp - 0xcc], 7
mov word [ebp - 0xe0], ax
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0xac]
cmp ecx, 8
jb 0x40473c
mov edx, dword [ebp - 0xc0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x404732
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404732
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00457642
add esp, 8
push dword [ebp - 0x34]
xor eax, eax
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0xa8]
mov byte [ebp - 0x90], al
mov word [ebp - 0xc0], ax
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
push dword [ebp - 0x90]
mov dword [ebp - 0xac], 7
call fcn.004136d0
add esp, 0xc
lea eax, [ebp - 0xa8]
mov byte [ebp - 4], 0xd
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x74]
call fcn.004021d0
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x94]
cmp ecx, 8
jb 0x4047e4
mov edx, dword [ebp - 0xa8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4047da
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4047da
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00457642
add esp, 8
xor eax, eax
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0x60], 8
lea ecx, [ebp - 0x74]
mov word [ebp - 0xa8], ax
lea eax, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x74]
cmp dword [ebp - 0x18], 8
push 2
cmovae eax, dword [ebp - 0x2c]
push ecx
push eax
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 7
call fcn.00456bba
test edx, edx
jne 0x404a24
jmp 0x40486c
mov ecx, dword [ebp - 0x60]
cmp ecx, 8
jb 0x4048a6
mov edx, dword [ebp - 0x74]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40489c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x78]
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
cmp ecx, 8
jb 0x4048f7
mov edx, dword [ebp - 0x8c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4048ed
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
cmp ecx, 8
jb 0x404948
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40493e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x48]
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
cmp ecx, 8
jb 0x404996
mov edx, dword [ebp - 0x5c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40498c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
cmp ecx, 0x10
jb 0x4049da
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4049d0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404a1e
push ecx
push edx
call fcn.00457642
add esp, 8
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0x10
jb 0x404631
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x404627
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x404627
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00402ea0
int3