Function at 0x10005bf7
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005a937
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xb4
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10005ccd
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x88]
movzx eax, byte [eax]
test eax, eax
je 0x10005c81
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
movzx eax, byte [eax]
test eax, eax
je 0x10005c7f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
jmp 0x10005cc8
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push dword [eax]
mov ecx, dword [ebp - 0x64]
call fcn.10001d4d
mov ecx, dword [ebp - 0x6c]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x10005f63
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x58], 0x7ee8
mov dword [ebp - 0x9c], str.tbiltiyft_henv_qnazdd_aels_rwbbbghc_ftx_tfgweramx_pdlhghn_aksujo_rcvsu_lxqtlu_jqzbtfde_pwamemjey
cmp dword [ebp - 0x58], 0x7f38
jle 0x10005f0e
push 0
push 0x1975
push 0
call dword [sym.imp.GDI32.dll_ExtCreateRegion]
and dword [ebp - 0x30], 0
jmp 0x10005d19
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x7b9c
jge 0x10005f06
and dword [ebp - 0x20], 0
jmp 0x10005d33
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x236d
jge 0x10005f01
and dword [ebp - 0x28], 0
jmp 0x10005d4d
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x7e8c
jge 0x10005efc
mov dword [ebp - 0x74], 0x249a
cmp dword [ebp - 0x74], 0xf05
jge 0x10005ea2
lea eax, [ebp - 0x7c]
push eax
push str._ld_n
call fcn.1004111b
pop ecx
pop ecx
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push eax
push str._ld__ld_n
call fcn.1004111b
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push str._ld__ld_n
call fcn.1004111b
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2c]
push eax
push str._ld__ld_n
call fcn.1004111b
add esp, 0xc
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
jge 0x10005e03
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x54], eax
jmp 0x10005e0c
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jge 0x10005e37
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
jmp 0x10005e40
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x14], eax
jge 0x10005e6b
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
jmp 0x10005e74
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push str._ld__ld__ld_n
call fcn.10041403
add esp, 0x10
mov eax, dword [ebp - 0x20]
cdq
idiv dword [ebp - 0x28]
and edx, dword [ebp - 0x30]
mov eax, edx
cdq
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], edx
push dword [ebp - 0xa4]
push dword [ebp - 0xa8]
lea ecx, [ebp - 0xc4]
call fcn.100026cb
pop ecx
pop ecx
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
call fcn.1000da81
push eax
call fcn.10041403
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.1000da77
jmp 0x10005d46
jmp 0x10005d2c
jmp 0x10005d12
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push dword [ebp - 0x8c]
push dword [ebp - 0x94]
push 0
call fcn.10004552
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x58], 0x7b44
jge 0x10005f3d
push dword [ebp - 0x9c]
call fcn.10041403
pop ecx
jmp 0x10005f59
or dword [ebp - 4], 0xffffffff
jmp 0x10005f63
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret