Function at 0x41aca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a184
mov eax, dword fs:[0]
push eax
sub esp, 0x470
mov eax, dword [0x471080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x470], ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x430]
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x46c], esi
call fcn.0043fa60
add esp, 0xc
test esi, esi
je 0x41b529
test edi, edi
je 0x41b529
push 0x5c
push esi
call fcn.0043f03e
add esp, 8
test eax, eax
je 0x41b529
add eax, 2
push eax
lea eax, [ebp - 0x430]
push 0x104
push eax
call fcn.004464ed
mov eax, dword [ebx]
lea ecx, [ebp - 0x430]
add esp, 0xc
push edi
push ecx
mov ecx, ebx
call dword [eax + 0x48]
test eax, eax
je 0x41b529
lea eax, [ebx + 0x54]
push 0
push 0x4634cc
mov ecx, eax
mov dword [ebp - 0x474], eax
call fcn.00409600
push edi
lea ecx, [ebp - 0x464]
mov dword [ebx + 0x4c], 0
call fcn.00409310
mov dword [ebp - 4], 0
mov ecx, 1
mov edx, dword [ebp - 0x464]
mov eax, dword [edx - 8]
sub ecx, dword [edx - 4]
sub eax, 0x104
or eax, ecx
jge 0x41adab
push 0x104
lea ecx, [ebp - 0x464]
call fcn.00409700
mov edx, dword [ebp - 0x464]
cmp dword [edx - 8], 0x104
jl 0x41b549
mov dword [edx - 0xc], 0x104
xor ecx, ecx
mov eax, dword [ebp - 0x464]
push 0x104
push edx
push edi
mov word [eax + 0x208], cx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [ebp - 0x464]
push dword [eax - 8]
push eax
call fcn.004461e9
mov edx, eax
add esp, 8
test edx, edx
js 0x41b549
mov ecx, dword [ebp - 0x464]
cmp edx, dword [ecx - 8]
jg 0x41b549
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x464]
mov word [eax + edx*2], cx
lea ecx, [ebp - 0x468]
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x68]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x464]
push dword [eax]
push str.QQPATH
call fcn.0041c390
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x468]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41ae5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x468]
push 1
push ecx
mov ecx, ebx
call dword [eax + 0x64]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x464]
push dword [eax]
push str.APPDATA
call fcn.0041c390
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41aea4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x468]
push 0
push ecx
mov ecx, ebx
call dword [eax + 0x64]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x464]
push dword [eax]
push 0x466a84
call fcn.0041c390
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41aeeb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x468]
push 2
push ecx
mov ecx, ebx
call dword [eax + 0x64]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x464]
push dword [eax]
push str.COMMON
call fcn.0041c390
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41af32
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebx]
lea ecx, [ebp - 0x468]
push 3
push ecx
mov ecx, ebx
call dword [eax + 0x64]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x464]
push dword [eax]
push str.MYDOCUMENT
call fcn.0041c390
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x468]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41af79
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0x463f74
push 0x466ac4
lea ecx, [ebp - 0x464]
call fcn.0041c390
mov eax, dword [ebp - 0x464]
mov edx, dword [eax - 0xc]
test edx, edx
js 0x41b553
mov ecx, 1
sub ecx, dword [eax - 4]
mov dword [ebp - 0x468], ecx
mov ecx, dword [eax - 8]
sub ecx, edx
or ecx, dword [ebp - 0x468]
jge 0x41afcc
push edx
lea ecx, [ebp - 0x464]
call fcn.00409700
mov eax, dword [ebp - 0x464]
push eax
push 0x104
push edi
call fcn.004464ed
mov eax, dword [ebp - 0x464]
push dword [eax - 8]
push eax
call fcn.004461e9
mov edx, eax
add esp, 0x14
test edx, edx
js 0x41b549
mov ecx, dword [ebp - 0x464]
cmp edx, dword [ecx - 8]
jg 0x41b549
push dword [ebp - 0x46c]
mov dword [ecx - 0xc], edx
xor ecx, ecx
mov eax, dword [ebp - 0x464]
push edi
mov word [eax + edx*2], cx
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x4c]
test eax, eax
jne 0x41b02b
xor ebx, ebx
jmp 0x41b503
push edi
lea ecx, [ebp - 0x448]
call fcn.00401660
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x448]
mov edi, dword [ebp - 0x434]
cmp edi, 8
cmovae ecx, dword [ebp - 0x448]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b054
sub ecx, edx
sar ecx, 1
push 0x208
push 0
lea eax, [ecx + 1]
mov dword [ebp - 0x46c], eax
lea eax, [ebp - 0x228]
push eax
call fcn.0043fa60
cmp edi, 8
lea eax, [ebp - 0x448]
mov edi, dword [ebp - 0x46c]
cmovae eax, dword [ebp - 0x448]
push eax
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004464ed
add esp, 0x18
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x228]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b0c0
sub ecx, edx
lea eax, [ebp - 0x228]
sar ecx, 1
push 0x463f74
push edi
lea eax, [eax + ecx*2]
push eax
call fcn.00446478
mov edi, dword [ebp - 0x448]
lea edx, [ebp - 0x448]
mov eax, dword [ebp - 0x438]
add esp, 0xc
cmp dword [ebp - 0x434], 8
cmovae edx, edi
test eax, eax
je 0x41b4a3
dec eax
mov ecx, esi
cmp eax, 0xffffffff
cmovb ecx, eax
cmp word [edx + ecx*2], 0x2e
lea eax, [edx + ecx*2]
je 0x41b131
nop
cmp eax, edx
je 0x41b4a3
sub eax, 2
cmp word [eax], 0x2e
jne 0x41b120
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x41b4a3
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x448]
call fcn.004162f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x460]
cmp dword [ebp - 0x44c], 8
lea edi, [ebp - 0x460]
mov edx, dword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
cmovae ecx, edx
cmovae edi, edx
mov dword [ebp - 0x46c], 0
lea esi, [ecx + eax*2]
lea eax, [ebp - 0x460]
cmovae eax, edx
mov ecx, eax
sub ecx, edi
inc ecx
shr ecx, 1
cmp edi, eax
cmova ecx, dword [ebp - 0x46c]
mov dword [ebp - 0x46c], ecx
test ecx, ecx
je 0x41b1d8
sub esi, edi
xor ebx, ebx
movzx eax, word [edi]
push eax
call fcn.004469d3
inc ebx
mov word [edi + esi], ax
add esp, 4
lea edi, [edi + 2]
cmp ebx, dword [ebp - 0x46c]
jne 0x41b1b0
mov edx, dword [ebp - 0x460]
mov ebx, dword [ebp - 0x470]
cmp word [ebx + 0x60], 0x31
jne 0x41b43f
push 0xffffffffffffffff
lea eax, [ebx + 0x64]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x14], 0
xorps xmm0, xmm0
push 7
push eax
movq qword [ebp - 0x20], xmm0
call fcn.0044646d
add esp, 0x10
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x468]
push eax
call fcn.00409310
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 8
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b230
sub ecx, edx
lea eax, [ebp - 0x20]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x468]
call fcn.0040bb00
movzx eax, word [ebx + 0x62]
cmp eax, 0x52
jne 0x41b387
push 4
push str..dll
lea ecx, [ebp - 0x468]
call fcn.0040bb00
lea eax, [ebp - 0x468]
mov edx, 0x466ae0
push eax
lea ecx, [ebp - 0x47c]
call fcn.0040ee50
push 0x466ad8
mov edx, eax
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x478]
call fcn.0041c2c0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
push ecx
mov edx, eax
lea ecx, [ebp - 0x46c]
call fcn.0041c2c0
add esp, 0xc
mov byte [ebp - 4], 0xb
lea ecx, [ebx + 0x50]
mov edx, dword [eax]
mov edi, dword [ecx]
sub edi, 0x10
lea esi, [edx - 0x10]
cmp esi, edi
je 0x41b311
cmp dword [edi + 0xc], 0
jl 0x41b308
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x41b308
mov ecx, esi
call fcn.00409510
or esi, 0xffffffff
mov dword [ebp - 0x470], eax
mov ecx, esi
lea edx, [edi + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41b300
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x470]
add eax, 0x10
mov dword [ebx + 0x50], eax
jmp 0x41b314
push dword [edx - 0xc]
push edx
call fcn.00409600
or esi, 0xffffffff
mov byte [ebp - 4], 0xa
mov eax, esi
mov edx, dword [ebp - 0x46c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b335
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x478]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b356
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x47c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b377
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebx + 0x48], 1
mov dword [ebx + 0x4c], 0
jmp 0x41b3af
cmp eax, 0x45
jne 0x41b3ac
push 4
push str..exe
lea ecx, [ebp - 0x468]
call fcn.0040bb00
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 1
or esi, 0xffffffff
mov edi, dword [ebp - 0x474]
mov eax, dword [ebp - 0x468]
mov edi, dword [edi]
lea ecx, [eax - 0x10]
sub edi, 0x10
cmp ecx, edi
je 0x41b41c
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x41b407
mov edx, dword [ecx]
cmp edx, dword [edi]
jne 0x41b407
call fcn.00409510
mov dword [ebp - 0x470], eax
mov ecx, esi
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x41b3fa
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x470]
mov ecx, dword [ebp - 0x474]
add eax, 0x10
mov dword [ecx], eax
jmp 0x41b416
push dword [eax - 0xc]
mov ecx, dword [ebp - 0x474]
push eax
call fcn.00409600
mov eax, dword [ebp - 0x468]
lea edx, [eax - 0x10]
mov byte [ebp - 4], 7
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41b437
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x460]
jmp 0x41b442
or esi, 0xffffffff
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x44c]
cmp eax, 8
jb 0x41b480
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41b476
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b55d
push ecx
push edx
call fcn.0043dbf3
add esp, 8
mov edi, dword [ebp - 0x448]
xor eax, eax
mov dword [ebp - 0x450], 0
mov dword [ebp - 0x44c], 7
mov word [ebp - 0x460], ax
mov byte [ebp - 4], 0
mov ebx, 1
mov edx, dword [ebp - 0x434]
cmp edx, 8
jb 0x41b4e6
lea ecx, [edx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x41b4dc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b562
push ecx
push edi
call fcn.0043dbf3
add esp, 8
xor eax, eax
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x464]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x41b525
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
jmp 0x41b52b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043dbb2
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00407690
push 0x80070057
call fcn.00407690
call fcn.004420bc
call fcn.004420bc
int3