Function at 0x414039
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9a81
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x88
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x41417d
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x34], 0x2844
mov dword [ebp - 0x48], str.rny_rmltkumh_plpews_oqgxf_gwxwhkroe_fvo_pag_lvlqngnda_oqn_bzg_fkv_eawhberm_ktemwlwrk_xainx
cmp dword [ebp - 0x34], 0x2920
jle 0x41411e
and dword [ebp - 0x2c], 0
jmp 0x41409e
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1ce0
jge 0x414116
and dword [ebp - 0x30], 0
jmp 0x4140b4
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x3bce
jge 0x414114
and dword [ebp - 0x1c], 0
jmp 0x4140ca
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2ce5
jge 0x414112
and dword [ebp - 0x24], 0
jmp 0x4140e0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x50e6
jge 0x414110
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
shl eax, cl
and eax, dword [ebp - 0x2c]
xor eax, dword [ebp - 0x24]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
mov ecx, 0xaca3b8
call fcn.00450c1a
jmp 0x4140d9
jmp 0x4140c3
jmp 0x4140ad
jmp 0x414097
push 0
call dword [sym.imp.KERNEL32.dll_GetFileType]
push 0x644b
push 0x4ab3
push dword [ebp - 0x74]
push dword [ebp - 0x60]
push 0
call fcn.0042730b
add esp, 0x14
and dword [ebp - 4], 0
cmp dword [ebp - 0x34], 0x27d4
jge 0x414152
mov edx, dword [ebp - 0x48]
mov ecx, 0xaca3b8
call fcn.004525c0
jmp 0x41416e
or dword [ebp - 4], 0xffffffff
jmp 0x414178
jmp 0x414316
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x68], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x38], 0x46a3
mov dword [ebp - 0x3c], str.ebd_ysqdz_iavpjm_rsl
cmp dword [ebp - 0x38], 0x47e7
jle 0x414267
and dword [ebp - 0x14], 0
jmp 0x4141bd
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x2d81
jge 0x41425b
and dword [ebp - 0x18], 0
jmp 0x4141d7
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x75ce
jge 0x414256
and dword [ebp - 0x20], 0
jmp 0x4141ed
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x2bcf
jge 0x414251
and dword [ebp - 0x28], 0
jmp 0x414203
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3bc3
jge 0x41424f
mov eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x20]
and eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], edx
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
lea ecx, [ebp - 0x98]
call fcn.00401993
pop ecx
pop ecx
mov ecx, eax
call fcn.00450c0f
push eax
call fcn.004b40b7
pop ecx
lea ecx, [ebp - 0x98]
call fcn.00450c05
jmp 0x4141fc
jmp 0x4141e6
jmp 0x4141d0
jmp 0x4141b6
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x38], 0x432b
jge 0x414286
push dword [ebp - 0x3c]
call fcn.004b40b7
pop ecx
jmp 0x4142a2
or dword [ebp - 4], 0xffffffff
jmp 0x4142ac
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
push dword [ebp - 0x50]
push 0x355f
push 0x3151
push dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax]
push eax
push 0x3547
push dword [ebp - 0x80]
push 1
push dword [ebp - 0x40]
push 0x3c53
push dword [ebp - 0x44]
push dword [ebp - 0x4c]
push dword [ebp - 0x54]
push 1
push 0x5ca9
push 0x7ba
push dword [ebp - 0x5c]
push dword [ebp - 0x64]
call fcn.00408516
add esp, 0x48
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret