Function at 0x412690
Capabilities:
Contain obfuscated stackstrings
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e842
mov eax, dword fs:[0]
push eax
sub esp, 0x358
mov eax, dword [0x4c8748]
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
mov edi, ecx
movaps xmm0, xmmword [str.RtlGetNtVersionN]
lea eax, [ebp - 0x48]
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x334], edi
push eax
mov dword [ebp - 0x30], 0x74006e
mov dword [ebp - 0x2c], 0x6c0064
mov dword [ebp - 0x28], 0x6c
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0x65626d75
mov word [ebp - 0x34], 0x7372
mov byte [ebp - 0x32], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41272c
push 0
lea ecx, [edi + 8]
push ecx
lea ecx, [edi + 4]
push ecx
call eax
xor eax, eax
mov word [edi + 6], ax
mov word [edi + 0xa], ax
test esi, esi
je 0x4128a3
xorps xmm0, xmm0
lea ecx, [ebp - 0x268]
movlpd qword [ebp - 0x268], xmm0
call fcn.00465830
push esi
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.00465c60
lea eax, [edi + 0xa8]
mov dword [ebp - 0x294], 0x74
push eax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x298], 0x6c
push eax
lea ecx, [ebp - 0x268]
call fcn.00465900
lea eax, [edi + 0xac]
push eax
lea eax, [ebp - 0x298]
push eax
lea ecx, [ebp - 0x268]
call fcn.00465900
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 0xffffffff
mov esi, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x268]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x268]
mov dword [ebp - 0x264], 0
cmp esi, eax
je 0x412898
mov ecx, dword [esi + 0x34]
mov eax, dword [esi]
mov dword [ebp - 0x258], eax
cmp ecx, 8
jb 0x412817
mov eax, dword [esi + 0x20]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41280d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d8c
mov eax, edx
push ecx
push eax
call fcn.00476d79
add esp, 8
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 7
mov word [esi + 0x20], ax
mov ecx, dword [esi + 0x1c]
cmp ecx, 8
jb 0x412865
mov eax, dword [esi + 8]
lea ecx, [ecx*2 + 2]
cmp ecx, 0x1000
jb 0x41285b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d8c
mov eax, edx
push ecx
push eax
call fcn.00476d79
add esp, 8
xor eax, eax
mov dword [esi + 0x18], 0
push 0x38
mov dword [esi + 0x1c], 7
push esi
mov word [esi + 8], ax
call fcn.00476d79
mov esi, dword [ebp - 0x258]
add esp, 8
mov eax, dword [ebp - 0x268]
cmp esi, eax
jne 0x4127d5
push 0x38
push eax
call fcn.00476d79
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
push 0
push 0x2000
lea ecx, [ebp - 0x290]
mov dword [ebp - 4], 1
call fcn.00407ab0
cmp dword [ebp - 0x27c], 0x10
lea eax, [ebp - 0x290]
push 0x2000
cmovae eax, dword [ebp - 0x290]
push eax
push 0x4a3e68
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x280]
cmp eax, ecx
ja 0x412926
cmp dword [ebp - 0x27c], 0x10
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x280], eax
cmovae ecx, dword [ebp - 0x290]
mov byte [ecx + eax], 0
jmp 0x412936
sub eax, ecx
lea ecx, [ebp - 0x290]
push 0
push eax
call fcn.00407ab0
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x364]
push eax
call fcn.00413120
push eax
lea eax, [ebp - 0x2c0]
mov byte [ebp - 4], 2
push eax
call fcn.00413620
mov edx, dword [ebp - 0x350]
add esp, 0x10
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x41299b
mov ecx, dword [ebp - 0x364]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412991
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d8c
push edx
push ecx
call fcn.00476d79
add esp, 8
mov edx, dword [ebp - 0x27c]
mov dword [ebp - 0x354], 0
mov dword [ebp - 0x350], 0xf
mov byte [ebp - 0x364], 0
mov dword [ebp - 4], 0xffffffff
cmp edx, 0x10
jb 0x4129f7
mov ecx, dword [ebp - 0x290]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4129ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d91
push edx
push ecx
call fcn.00476d79
add esp, 8
mov dword [ebp - 0x280], 0
mov dword [ebp - 0x27c], 0xf
mov byte [ebp - 0x290], 0
push 0x70
lea eax, [ebp - 0x330]
mov dword [ebp - 4], 3
push 0
push eax
mov byte [ebp - 4], 4
call fcn.00478960
add esp, 0xc
lea ecx, [ebp - 0x330]
call fcn.0046c840
xorps xmm0, xmm0
mov byte [ebp - 4], 5
push 0
lea ecx, [ebp - 0x278]
movups xmmword [ebp - 0x278], xmm0
call fcn.00468f40
push 0
lea eax, [ebp - 0x278]
mov byte [ebp - 4], 6
push eax
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x330]
call fcn.0046f970
test al, al
je 0x412c53
lea ecx, [ebp - 0x278]
call fcn.0046b1f0
test al, al
jne 0x412c53
mov byte [ebp - 0x25a], al
lea ecx, [ebp - 0x278]
mov byte [ebp - 0x18], al
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - 0x260], 0x707041
mov dword [ebp - 0x24], 0x696e6843
mov word [ebp - 0x20], 0x64
mov word [ebp - 0x25c], 0x4549
mov dword [ebp - 0x258], 0x726556
mov dword [ebp - 0x1c], 0x72657643
call fcn.004697c0
mov ecx, eax
call fcn.0046b1f0
test al, al
jne 0x412b1b
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, eax
call fcn.0046aa60
push eax
lea ecx, [edi + 0x10]
call fcn.004125f0
lea ecx, [ebp - 0x34c]
call fcn.00401ca0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
mov ecx, eax
call fcn.0046b1f0
test al, al
jne 0x412b66
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, eax
call fcn.0046aa60
push eax
lea ecx, [edi + 0x28]
call fcn.004125f0
lea ecx, [ebp - 0x34c]
call fcn.00401ca0
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
mov ecx, eax
call fcn.0046b1f0
test al, al
jne 0x412bb7
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, eax
call fcn.0046aa60
push eax
lea ecx, [edi + 0x48]
call fcn.004125f0
lea ecx, [ebp - 0x34c]
call fcn.00401ca0
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
mov ecx, eax
call fcn.0046b1f0
test al, al
jne 0x412c08
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, eax
call fcn.0046aa60
push eax
lea ecx, [edi + 0x60]
call fcn.004125f0
lea ecx, [ebp - 0x34c]
call fcn.00401ca0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
mov ecx, eax
call fcn.0046b1f0
test al, al
jne 0x412c53
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x278]
call fcn.004697c0
lea ecx, [ebp - 0x34c]
push ecx
mov ecx, eax
call fcn.0046aa60
push eax
lea ecx, [edi + 0x78]
call fcn.004125f0
lea ecx, [ebp - 0x34c]
call fcn.00401ca0
lea ecx, [ebp - 0x278]
call fcn.00469340
lea ecx, [ebp - 0x330]
call fcn.004090c0
jmp 0x412c77
mov ecx, edi
mov dword [ebp - 4], 3
call fcn.00412da0
push 0x20a
lea eax, [ebp - 0x254]
push 0
push eax
call fcn.00478960
add esp, 0xc
lea eax, [ebp - 0x254]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x254]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412cd2
sub ecx, edx
lea eax, [ebp - 0x254]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x90]
call fcn.00404110
push 0
lea eax, [ebp - 0x2a8]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x2a8], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
test eax, eax
je 0x412d33
mov eax, dword [ebp - 0x2a0]
sub eax, dword [ebp - 0x2a8]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x29c]
sub eax, dword [ebp - 0x2a4]
mov dword [edi + 0x44], eax
mov edx, dword [ebp - 0x2ac]
cmp edx, 0x10
jb 0x412d69
mov ecx, dword [ebp - 0x2c0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x412d5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d96
push edx
push ecx
call fcn.00476d79
add esp, 8
mov eax, 1
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.0047702f
mov esp, ebp
pop ebp
ret 4
call fcn.0047c5ae
call fcn.0047c5ae
call fcn.0047c5ae
int3