Function at 0x100715b0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push esi
mov dword [ebp - 0xb0], 0xca1e57c6
mov eax, dword [0x100d3188]
mov ecx, dword [0x100d318c]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x68], 0x77ac495
mov edx, dword [0x100d3168]
mov eax, dword [0x100d316c]
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], eax
mov byte [ebp - 3], 0x6c
movzx ecx, byte [0x100d3027]
mov dword [ebp - 0x30], ecx
xor edx, edx
mov dword [ebp - 0x80], 0xa7d9545c
mov dword [ebp - 0x7c], edx
mov byte [ebp - 1], 0x88
xor eax, eax
mov dword [ebp - 0xdc], 0x507d9512
mov dword [ebp - 0xd8], eax
mov ecx, dword [0x100d3198]
mov edx, dword [0x100d319c]
mov dword [ebp - 0xb4], edx
mov word [ebp - 0x1c], cx
mov byte [ebp - 9], 0xff
mov ax, word [0x100d315c]
mov word [ebp - 0x20], ax
mov ecx, 0x9968
mov word [ebp - 0x50], cx
movsx edx, word [0x100d31b0]
mov dword [ebp - 0x60], edx
mov byte [ebp - 2], 0x7d
xor eax, eax
mov dword [ebp - 0x44], 0x3e
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x10], 0xa62230da
mov byte [ebp - 0x11], 0xab
mov ecx, dword [0x100d3180]
mov edx, dword [0x100d3184]
mov dword [ebp - 0xe4], ecx
mov dword [ebp - 0xe0], edx
mov dword [ebp - 0xb8], 0xef809bb
mov ax, word [0x100d3148]
mov word [ebp - 0x18], ax
movsx cx, byte [0x100d304e]
mov word [ebp - 8], cx
mov edx, 0xd2f6
mov word [ebp - 0x54], dx
mov dword [ebp - 0xbc], 0xe
mov eax, dword [0x100d3174]
mov dword [ebp - 0x64], eax
movzx eax, byte [0x100d3063]
cdq
mov dword [ebp - 0xec], eax
mov dword [ebp - 0xe8], edx
mov cx, word [0x100d3174]
mov word [ebp - 0x58], cx
movzx eax, byte [0x100d3027]
cdq
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], edx
mov dword [ebp - 0xc0], 0x78d5
mov edx, dword [0x100d3190]
mov byte [ebp - 0x12], dl
mov eax, dword [0x100d311c]
cdq
mov dword [ebp - 0xfc], eax
mov dword [ebp - 0xf8], edx
xor eax, eax
mov dword [ebp - 0x104], 0x41
mov dword [ebp - 0x100], eax
mov ecx, dword [0x100d3190]
mov dword [ebp - 0xc4], ecx
mov edx, dword [0x100d3198]
mov eax, dword [0x100d319c]
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xcc], edx
mov byte [ebp - 0x13], 0xfe
movsx ecx, byte [0x100d3026]
mov dword [ebp - 0x94], ecx
mov edx, 0x2d26
mov word [ebp - 0x5c], dx
movzx eax, word [0x100d315c]
cdq
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], edx
mov eax, dword [0x100d3188]
mov dword [ebp - 0x98], eax
mov ecx, dword [0x100d3174]
xor edx, edx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x9c], 0xa30fad57
xor eax, eax
mov dword [ebp - 0x11c], 0xa1
mov dword [ebp - 0x118], eax
xor ecx, ecx
mov dword [ebp - 0x124], 0x2e1d
mov dword [ebp - 0x120], ecx
mov edx, dword [0x100d3180]
mov eax, dword [0x100d3184]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0xa4], edx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov byte [0x100d304f], al
movsx eax, word [0x100d31b0]
cdq
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
cmp dword [ebp - 0x6c], 0x51d89
jg 0x10071822
jl 0x10071814
cmp dword [ebp - 0x70], 0xf55f206b
jae 0x10071822
xor ecx, ecx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], ecx
jmp 0x1007182a
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov edx, dword [0x100d31a8]
mov eax, dword [0x100d31ac]
mov dword [ebp - 0x78], edx
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x48]
cmp ecx, dword [ebp - 0x74]
jg 0x10071859
jl 0x1007184d
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x78]
ja 0x10071859
movsx eax, byte [ebp - 1]
test eax, eax
jne 0x1007195d
mov dword [ebp - 0x24], 0
jmp 0x1007186b
mov ecx, dword [ebp - 0x24]
add ecx, 2
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0x8b
jge 0x10071958
mov edx, dword [0x100d3170]
add edx, 0x1c04
movsx eax, word [0x100d3128]
or eax, edx
mov word [0x100d3128], ax
mov cl, byte [ebp - 2]
add cl, 1
mov byte [ebp - 2], cl
mov edx, 1
imul eax, edx, 0x9c49
movzx cx, byte [eax + 0x10176220]
mov word [0x100d31b0], cx
cmp dword [ebp - 0x60], 0
jne 0x100718c5
mov dword [ebp - 0x28], 1
jmp 0x100718cc
mov dword [ebp - 0x28], 0
mov edx, dword [0x100d31b4]
xor eax, eax
xor edx, dword [ebp - 0x44]
xor eax, dword [ebp - 0x40]
not edx
not eax
movzx ecx, byte [0x100d3027]
mov esi, dword [ebp - 0x10]
add esi, ecx
xor ecx, ecx
sub edx, esi
sbb eax, ecx
not edx
not eax
movzx ecx, byte [0x100d3027]
add ecx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x10]
sub esi, ecx
not esi
xor ecx, ecx
sub edx, esi
sbb eax, ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
movsx edx, word [0x100d3128]
imul eax, edx, 0xcd707cad
mov dword [0x100d3174], eax
movsx eax, byte [ebp - 1]
cdq
mov ecx, dword [0x100d3120]
not ecx
mov esi, dword [0x100d3124]
not esi
push esi
push ecx
push edx
push eax
call fcn.100a25b0
mov byte [ebp - 9], al
mov edx, dword [0x100d3144]
add edx, 1
mov dword [0x100d3144], edx
jmp 0x10071862
jmp 0x10071b71
mov eax, dword [ebp - 0x64]
cmp dword [0x100d3158], eax
jb 0x10071971
mov dword [ebp - 0x2c], 1
jmp 0x10071978
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x2c]
not ecx
test ecx, ecx
je 0x10071aa6
movsx eax, byte [ebp - 1]
cdq
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0xa8], ecx
sub eax, edx
mov byte [ebp - 1], al
mov edx, dword [0x100d3120]
add edx, 0xdbc18d1b
mov eax, dword [0x100d3124]
adc eax, 0xc8650
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], eax
mov dword [0x100d3144], 0x2f0d
movsx ecx, word [ebp - 8]
movsx edx, byte [0x100d3026]
imul ecx, edx
movsx eax, word [ebp - 8]
add eax, ecx
mov word [ebp - 8], ax
mov eax, dword [ebp - 0x30]
not eax
cdq
mov ecx, dword [0x100d318c]
push ecx
mov ecx, dword [0x100d3188]
push ecx
push edx
push eax
call fcn.100a25b0
mov ecx, eax
mov esi, edx
movsx eax, byte [ebp - 2]
cdq
sub ecx, eax
sbb esi, edx
not ecx
not esi
movsx eax, word [0x100d312c]
sub eax, 0x9866
not eax
cdq
add eax, dword [ebp - 0x80]
adc edx, dword [ebp - 0x7c]
push edx
push eax
push esi
push ecx
call fcn.100a25b0
not eax
mov dword [0x100d3140], eax
movsx edx, word [ebp - 8]
movsx eax, word [ebp - 0x18]
imul edx, eax
movzx ecx, byte [ebp - 3]
not ecx
movzx eax, byte [ebp - 3]
imul ecx, eax
xor edx, ecx
jne 0x10071a5a
xor ecx, ecx
mov dword [ebp - 0x88], 1
mov dword [ebp - 0x84], ecx
jmp 0x10071a65
xorps xmm0, xmm0
movlpd qword [ebp - 0x88], xmm0
mov edx, dword [0x100d3144]
xor eax, eax
mov ecx, dword [0x100d3198]
mov esi, dword [0x100d319c]
push esi
push ecx
push eax
push edx
call fcn.100a25b0
mov edx, dword [0x100d3198]
mov ecx, dword [0x100d319c]
mov dword [ebp - 0xac], ecx
add eax, edx
add eax, dword [ebp - 0x88]
mov dword [0x100d31b4], eax
jmp 0x10071b71
mov eax, dword [ebp - 0x30]
not eax
cdq
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], edx
mov edx, dword [ebp - 0x8c]
cmp edx, dword [0x100d314c]
jg 0x10071b71
jl 0x10071ade
mov eax, dword [ebp - 0x90]
cmp eax, dword [0x100d3148]
ja 0x10071b71
movzx ecx, word [0x100d3178]
test ecx, ecx
jne 0x10071af2
mov dword [ebp - 0x34], 1
jmp 0x10071af9
mov dword [ebp - 0x34], 0
movsx eax, word [0x100d3130]
add eax, dword [ebp - 0x34]
cdq
mov ecx, dword [0x100d316c]
push ecx
mov ecx, dword [0x100d3168]
push ecx
push edx
push eax
call fcn.100a25b0
mov edx, dword [0x100d3120]
not edx
add eax, edx
mov word [ebp - 0x1c], ax
mov ax, word [0x100d3c78]
mov word [0x100d31b0], ax
mov cl, byte [0x100d3c78]
mov byte [0x100d3063], cl
mov edx, dword [ebp - 0x10]
imul edx, dword [0x100d3134]
xor eax, eax
mov dword [0x100d31a8], edx
mov dword [0x100d31ac], eax
mov ecx, dword [0x100d3160]
mov dword [ebp - 0x68], ecx
movsx edx, word [ebp - 0x20]
imul eax, edx, 0x17cb
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x10], ecx
push str.C:NonExistentPath
push str.TEMP
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
pop esi
mov esp, ebp
pop ebp
ret