Function at 0x1000205a
Capabilities:
Query environment variable
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x20c0
call sub.ntdll.dll__chkstk
push ebx
push esi
xor esi, esi
lea edx, [esp + 0x638]
inc esi
xor bh, bh
call fcn.100051fb
test al, al
je 0x1000231d
call fcn.10005384
mov bl, al
test bl, bl
je 0x10002097
push 0xe
jmp 0x10002370
lea ecx, [esp + 0x1aa8]
call fcn.100046e7
lea ecx, [esp + 0x1688]
mov byte [esp + 0xe], al
call fcn.100048d8
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 1
mov byte [esp + 0x18], al
call esi
push 0x104
lea eax, [esp + 0x189c]
push eax
push str._LOCALAPPDATA__PRODUCTNAME_xBin
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
jbe 0x100020e9
push 0x1d
pop esi
jmp 0x10002301
lea eax, [esp + 0x126c]
push eax
lea eax, [esp + 0x189c]
push eax
push str._s_s.dll
lea eax, [esp + 0x434]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x14
cmp dword [esp + 0x1268], 0
jne 0x1000213a
mov dl, byte [esp + 0xe]
push ecx
push 0
push 3
push dword [esp + 0x20]
lea ecx, [esp + 0x648]
call fcn.10001943
add esp, 0x10
call fcn.10004be5
push ecx
lea ecx, [esp + 0x63c]
call fcn.10001f43
cmp byte [esp + 0x18], 0
pop ecx
mov byte [esp + 0xf], al
je 0x1000216d
lea edx, [esp + 0x1688]
lea ecx, [esp + 0x638]
call fcn.10001fc6
mov bh, al
push 1
call esi
push 0x104
lea eax, [esp + 0x147c]
push eax
push str._LOCALAPPDATA__PRODUCTNAME_xBin_f.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, 0x102
ja 0x100021b8
xor eax, eax
push eax
push eax
push 2
push eax
push eax
push 0x1f01ff
lea eax, [esp + 0x1490]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100021b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1cb8]
push eax
lea eax, [esp + 0x224]
push eax
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x434]
lea ecx, [esp + 0x644]
call fcn.100034a1
add esp, 0xc
test al, al
jne 0x100021ee
push 0x12
jmp 0x100022ef
lea eax, [esp + 0x638]
push eax
lea eax, [esp + 0x1cbc]
push eax
lea edx, [esp + 0x430]
lea ecx, [esp + 0x20]
call fcn.10001de4
pop ecx
pop ecx
test al, al
jne 0x1000221b
push 6
jmp 0x100022ef
lea eax, [esp + 0x10]
xor esi, esi
push eax
lea eax, [esp + 0x63c]
mov dword [esp + 0x14], esi
push 1
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x24]
call fcn.10003886
add esp, 0xc
test al, al
jne 0x10002324
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x63c]
push esi
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x24]
call fcn.10003886
add esp, 0xc
test al, al
jne 0x10002324
call fcn.1000492b
test al, al
jne 0x10002293
push dword [esp + 0x10]
push ecx
push 0xd
pop edx
lea ecx, [esp + 0x640]
call fcn.10001a1a
pop ecx
pop ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x10], esi
push eax
lea eax, [esp + 0x63c]
push eax
lea edx, [esp + 0x228]
lea ecx, [esp + 0x20]
call fcn.1000351a
pop ecx
pop ecx
test al, al
jne 0x10002324
push dword [esp + 0x10]
push ecx
push 9
pop edx
lea ecx, [esp + 0x640]
call fcn.10001a1a
lea eax, [esp + 0x640]
push eax
lea edx, [esp + 0x22c]
lea ecx, [esp + 0x24]
call fcn.100033ec
add esp, 0xc
test al, al
jne 0x10002324
push 0x13
pop esi
lea edx, [esp + 0x638]
call fcn.10003f97
cmp esi, 0x33
je 0x1000231d
push 0x10006810
push 1
push esi
mov edx, 0xc8
lea ecx, [esp + 0x644]
call fcn.1000182e
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [esp + 0x1268], esi
jne 0x1000236e
cmp byte [esp + 0x14], 0
je 0x1000233d
mov byte [esp + 0x14], 1
test bh, bh
jne 0x10002342
mov byte [esp + 0x14], 0
cmp byte [esp + 0xe], 0
je 0x10002354
cmp byte [esp + 0xf], 0
je 0x10002354
mov dl, 1
jmp 0x10002356
xor dl, dl
push ecx
push 0
push 4
push dword [esp + 0x20]
lea ecx, [esp + 0x648]
call fcn.10001943
add esp, 0x10
push 0x33
pop esi
test bl, bl
je 0x100022fc
push ecx
push 0
push 0xb
push 0
xor dl, dl
lea ecx, [esp + 0x648]
call fcn.10001943
add esp, 0x10
jmp 0x1000231d