Function at 0x419c50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454de4
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x468100]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ebx, ecx
push 0x206
push eax
lea ecx, [ebp - 0x42e]
push ecx
mov dword [ebp - 0x480], ebx
mov dword [ebp - 0x474], edi
mov dword [ebp - 0x478], esi
mov word [ebp - 0x430], ax
call fcn.00442420
add esp, 0xc
test edi, edi
je 0x419f81
test esi, esi
je 0x419f81
push 0x5c
push edi
call fcn.0043f35f
add esp, 8
test eax, eax
je 0x419f81
add eax, 2
push eax
lea edx, [ebp - 0x430]
push 0x104
push edx
call fcn.0043f983
mov eax, dword [ebx]
mov edx, dword [eax + 0x48]
add esp, 0xc
push esi
lea ecx, [ebp - 0x430]
push ecx
mov ecx, ebx
call edx
test eax, eax
je 0x419f81
lea edi, [ebx + 0x54]
mov edx, 0x45a7a4
mov dword [ebp - 0x484], edi
call fcn.004087d0
lea eax, [ebp - 0x46c]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebx + 0x4c], edi
call fcn.004086c0
mov dword [ebp - 4], edi
mov ecx, dword [ebp - 0x46c]
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
mov edi, 0x104
sub eax, edi
or eax, edx
jge 0x419d62
mov eax, edi
lea ecx, [ebp - 0x46c]
call fcn.00408a80
mov ecx, dword [ebp - 0x46c]
cmp dword [ecx - 8], edi
jge 0x419d71
push 0x80070057
call fcn.00407180
push edi
mov dword [ecx - 0xc], edi
mov eax, dword [ebp - 0x46c]
push ecx
xor edx, edx
push esi
mov word [eax + 0x208], dx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea esi, [ebp - 0x46c]
call fcn.0041b250
mov edx, dword [ebx]
mov edx, dword [edx + 0x68]
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 1
mov eax, dword [eax]
push eax
push str.QQPATH
mov eax, esi
push eax
call fcn.0041ada0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419de1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 1
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push eax
push str.APPDATA
lea eax, [ebp - 0x46c]
push eax
call fcn.0041ada0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419e31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 0
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push eax
push str.TEMP
lea eax, [ebp - 0x46c]
push eax
call fcn.0041ada0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 2
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 4
mov eax, dword [eax]
push eax
push str.COMMON
lea eax, [ebp - 0x46c]
push eax
call fcn.0041ada0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419ed1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebx]
mov edx, dword [edx + 0x64]
push 3
lea eax, [ebp - 0x470]
push eax
mov ecx, ebx
call edx
mov byte [ebp - 4], 5
mov eax, dword [eax]
push eax
push str.MYDOCUMENT
lea eax, [ebp - 0x46c]
push eax
call fcn.0041ada0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x470]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x419f21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x45b4a4
push 0x45def8
lea ecx, [ebp - 0x46c]
push ecx
call fcn.0041ada0
mov edx, dword [ebp - 0x46c]
mov eax, dword [edx - 0xc]
lea esi, [ebp - 0x46c]
call fcn.00408890
mov edi, dword [ebp - 0x478]
push eax
push 0x104
push edi
call fcn.0043f983
add esp, 0xc
call fcn.0041b250
mov ecx, dword [ebp - 0x474]
mov eax, dword [ebx]
mov edx, dword [eax + 0x4c]
push ecx
push edi
mov ecx, ebx
call edx
test eax, eax
jne 0x419fa1
mov eax, esi
call fcn.00408870
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.0043e1c4
mov esp, ebp
pop ebp
ret 8
mov eax, edi
lea ecx, [ebp - 0x44c]
call fcn.004013d0
mov byte [ebp - 4], 6
mov edi, dword [ebp - 0x438]
mov eax, dword [ebp - 0x44c]
cmp edi, 8
jae 0x419fc9
lea eax, [ebp - 0x44c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419fd0
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x226]
push ecx
mov word [ebp - 0x228], ax
call fcn.00442420
mov eax, dword [ebp - 0x44c]
add esp, 0xc
cmp edi, 8
jae 0x41a011
lea eax, [ebp - 0x44c]
push eax
lea edx, [ebp - 0x228]
push esi
push edx
call fcn.0043f983
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x228]
lea edx, [eax + 2]
jmp 0x41a040
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a040
sub eax, edx
sar eax, 1
push 0x45b4a4
lea ecx, [ebp + eax*2 - 0x228]
push esi
push ecx
call fcn.0043f60c
add esp, 0xc
lea edx, [ebp - 0x474]
push edx
lea eax, [ebp - 0x44c]
push eax
mov edi, 1
mov dword [ebp - 0x474], 0x2e
call fcn.004150e0
cmp eax, 0xffffffff
je 0x41a240
push 0xffffffffffffffff
mov ecx, eax
lea esi, [ebp - 0x468]
lea edx, [ebp - 0x44c]
call fcn.004150b0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x454]
mov esi, dword [ebp - 0x468]
mov ecx, esi
cmp eax, 8
jae 0x41a0c2
lea ecx, [ebp - 0x468]
mov edx, dword [ebp - 0x458]
lea edx, [ecx + edx*2]
mov ecx, esi
cmp eax, 8
jae 0x41a1ef
lea ecx, [ebp - 0x468]
mov eax, ecx
cmp eax, ecx
je 0x41a0fa
push edx
lea edx, [ebp - 0x47c]
push edx
mov ebx, ecx
call fcn.0041b5e0
mov ebx, dword [ebp - 0x480]
add esp, 8
cmp word [ebx + 0x60], 0x31
jne 0x41a235
push 0xffffffffffffffff
lea ecx, [ebx + 0x64]
push ecx
xor eax, eax
lea edx, [ebp - 0x20]
push 7
push edx
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
call fcn.0043f272
add esp, 0x10
lea eax, [ebp - 0x470]
push eax
lea ecx, [ebp - 0x228]
call fcn.004086c0
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x470]
mov byte [ebp - 4], 8
call fcn.0040a7b0
movzx eax, word [ebx + 0x62]
cmp eax, 0x52
jne 0x41a1f6
mov edx, str..dll
lea eax, [ebp - 0x470]
call fcn.0040a7b0
lea ecx, [ebp - 0x47c]
push ecx
lea edi, [ebp - 0x470]
call fcn.0041b190
push eax
lea edx, [ebp - 0x478]
push edx
mov ebx, 0x45df0c
mov byte [ebp - 4], 9
call fcn.0041b0b0
push eax
lea eax, [ebp - 0x474]
push eax
lea ebx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.0041b0b0
add esp, 0x14
mov esi, dword [ebp - 0x480]
lea edi, [esi + 0x50]
mov byte [ebp - 4], 0xb
call fcn.00408760
lea eax, [ebp - 0x474]
call fcn.00408870
lea eax, [ebp - 0x478]
call fcn.00408870
lea eax, [ebp - 0x47c]
mov byte [ebp - 4], 8
call fcn.00408870
mov dword [esi + 0x48], 1
mov dword [esi + 0x4c], 0
jmp 0x41a219
mov eax, esi
jmp 0x41a0de
cmp eax, 0x45
jne 0x41a219
mov edx, str..exe
lea eax, [ebp - 0x470]
call fcn.0040a7b0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x4c], 1
mov edi, dword [ebp - 0x484]
lea eax, [ebp - 0x470]
call fcn.00408760
lea eax, [ebp - 0x470]
call fcn.00408870
lea esi, [ebp - 0x468]
call fcn.00401410
lea esi, [ebp - 0x44c]
call fcn.00401410
lea eax, [ebp - 0x46c]
call fcn.00408870
mov eax, 1
jmp 0x419f83