Function at 0x40cd9c
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc31d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xd4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 8]
test eax, eax
je 0x40d109
lea eax, [ebp + 0x28]
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xa8], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
movzx eax, byte [eax]
test eax, eax
je 0x40d0b9
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x60]
movzx eax, byte [eax]
test eax, eax
je 0x40d082
mov dword [ebp - 0x38], 0x4d9
mov dword [ebp - 0x68], str.rremq_wgfrexwif_xmu_qwqc_qyvljqhf_pqi_ysrluauyr_xwv_wsphna
cmp dword [ebp - 0x38], 0x54b
jle 0x40cec5
and dword [ebp - 0x2c], 0
jmp 0x40ce76
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x1470
jge 0x40cec5
and dword [ebp - 0x34], 0
jmp 0x40ce8c
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x17ec
jge 0x40cec3
mov eax, dword [ebp - 0x2c]
cdq
idiv dword [ebp - 0x34]
mov eax, edx
cdq
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], edx
push dword [ebp - 0xac]
push dword [ebp - 0xb0]
mov ecx, 0xace058
call fcn.004063d1
jmp 0x40ce85
jmp 0x40ce6f
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0x44], eax
and dword [ebp - 4], 0
cmp dword [ebp - 0x38], 0x345
jge 0x40cee8
mov edx, dword [ebp - 0x68]
mov ecx, 0xace058
call fcn.00409042
jmp 0x40cf04
or dword [ebp - 4], 0xffffffff
jmp 0x40cf0e
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x3c], 0x69f3
mov dword [ebp - 0x78], str.dncykcbf_qwqoxeggj_amzacjax_pescdobjy_eih_seurmq
cmp dword [ebp - 0x3c], 0x6d7f
jle 0x40cfff
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
and dword [ebp - 0x18], 0
jmp 0x40cf52
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4977
jge 0x40cfff
and dword [ebp - 0x24], 0
jmp 0x40cf6c
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x74c1
jge 0x40cffa
and dword [ebp - 0x30], 0
jmp 0x40cf86
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x2b24
jge 0x40cff5
and dword [ebp - 0x1c], 0
jmp 0x40cf9c
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x2b24
jge 0x40cff3
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0x30]
and eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], edx
push dword [ebp - 0xb8]
push dword [ebp - 0xbc]
lea ecx, [ebp - 0xe4]
call fcn.00401a01
pop ecx
pop ecx
mov ecx, eax
call fcn.004063c6
push eax
call fcn.004a68c7
pop ecx
lea ecx, [ebp - 0xe4]
call fcn.004063bc
jmp 0x40cf95
jmp 0x40cf7f
jmp 0x40cf65
jmp 0x40cf4b
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 4], 2
cmp dword [ebp - 0x3c], 0x6719
jge 0x40d024
push dword [ebp - 0x78]
call fcn.004a68c7
pop ecx
jmp 0x40d040
or dword [ebp - 4], 0xffffffff
jmp 0x40d04a
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x40d060
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 3
jge 0x40d080
mov eax, dword [ebp - 0x14]
push dword [eax]
mov ecx, dword [ebp - 0xa0]
call fcn.00406814
mov dword [eax], 0xc3cbaa6f
jmp 0x40d055
jmp 0x40d0b7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
push 1
mov ecx, dword [ebp - 0x54]
call fcn.00406814
mov esi, eax
push 0
mov ecx, dword [ebp - 0x5c]
call fcn.00406814
mov ecx, dword [esi]
mov dword [eax], ecx
jmp 0x40d104
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x74]
movzx eax, byte [eax]
test eax, eax
je 0x40d0d7
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x40d104
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x8c]
movzx eax, byte [eax]
test eax, eax
je 0x40d104
push 0x1b69
call dword [sym.imp.USER32.dll_DrawMenuBar]
jmp 0x40d1f7
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0x40], 0x360f
mov dword [ebp - 0x94], str.nllhhpjlp_ypbiolixu_tvdw_sfuqc_ubgscjpeq
cmp dword [ebp - 0x40], 0x3931
jle 0x40d186
and dword [ebp - 0x20], 0
jmp 0x40d139
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x1ff1
jge 0x40d186
and dword [ebp - 0x28], 0
jmp 0x40d14f
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x3646
jge 0x40d184
mov eax, dword [ebp - 0x20]
imul eax, dword [ebp - 0x28]
cdq
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], edx
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
mov ecx, 0xace058
call fcn.004063d1
jmp 0x40d148
jmp 0x40d132
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 4], 4
cmp dword [ebp - 0x40], 0x33fd
jge 0x40d1af
mov edx, dword [ebp - 0x94]
mov ecx, 0xace058
call fcn.00409042
jmp 0x40d1cb
or dword [ebp - 4], 0xffffffff
jmp 0x40d1d5
push dword [ebp - 0x9c]
push 1
push 0x4934
push 0x7022
push 0
push dword [ebp - 0xa4]
call fcn.0040daa1
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret