Function at 0x42c040
Capabilities:
Download url
Get common file path
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f8bd
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x525140]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x526b48]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x526b18]
cmp eax, dword [ecx + 4]
jg 0x42c4ff
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x425c0000
push eax
mov dword [ebp - 0x454], 0x42d40000
call fcn.00410ac0
call fcn.00405ec0
push 0x526afc
push 0
push str.GayHack
call fcn.004273f0
push 0x526afc
push 1
push str.Enigma_BETA
call fcn.004273f0
push 0x526afc
push 2
push str.MAS_v1
call fcn.004273f0
push 0x526afc
push 3
push str.MAS_v2
call fcn.004273f0
add esp, 0x34
call fcn.00408060
call fcn.0042bb80
mov eax, dword [0x526afc]
cmp eax, 3
ja case.default.0x42c111
jmp dword [eax*4 + 0x42c554]
push 0x476680
lea eax, [ebp - 0x470]
push str.pastebin.com
push eax
call fcn.004290f0
add esp, 0xc
mov ecx, 0x526b00
push eax
call fcn.00428ce0
lea ecx, [ebp - 0x470]
call fcn.00428980
mov dword [0x525100], 0x4766b8
jmp case.default.0x42c111
push 0x476680
lea eax, [ebp - 0x470]
push str.pastebin.com
push eax
call fcn.004290f0
add esp, 0xc
mov ecx, 0x526b00
push eax
call fcn.00428ce0
lea ecx, [ebp - 0x470]
call fcn.00428980
mov dword [0x525100], 0x4766d0
jmp case.default.0x42c111
push 0x476680
lea eax, [ebp - 0x470]
push str.pastebin.com
push eax
call fcn.004290f0
add esp, 0xc
mov ecx, 0x526b00
push eax
call fcn.00428ce0
lea ecx, [ebp - 0x470]
call fcn.00428980
mov dword [0x525100], 0x4766e8
jmp case.default.0x42c111
push 0x476680
lea eax, [ebp - 0x470]
push str.pastebin.com
push eax
call fcn.004290f0
add esp, 0xc
mov ecx, 0x526b00
push eax
call fcn.00428ce0
lea ecx, [ebp - 0x470]
call fcn.00428980
mov dword [0x525100], 0x476700
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x42480000
push eax
mov dword [ebp - 0x454], 0x43a78000
call fcn.00410ac0
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x42700000
push eax
push 0x476718
mov dword [ebp - 0x454], 0x41f00000
call fcn.00425500
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
add esp, 0xc
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test al, al
je 0x42c38f
lea eax, [ebp - 0x218]
push eax
push 0x104
call esi
test eax, eax
je 0x42c37f
mov esi, dword [0x525100]
lea ecx, [ebp - 0x218]
xorps xmm0, xmm0
mov dword [ebp - 0x460], 0
movups xmmword [ebp - 0x470], xmm0
mov dword [ebp - 0x45c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c2a4
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x470]
call fcn.004279f0
push esi
lea eax, [ebp - 0x470]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00427630
add esp, 0xc
lea ecx, [ebp - 0x470]
mov byte [ebp - 4], 3
call fcn.00428980
cmp dword [ebp - 0x424], 7
lea edi, [ebp - 0x438]
mov esi, 0x526b00
cmova edi, dword [ebp - 0x438]
cmp dword [0x526b14], 7
cmova esi, dword [0x526b00]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push edi
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileW
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
test eax, eax
jns 0x42c348
push 0x10
push str.Fatal_error
push str.Failed_to_download_file.
push 0
call edi
cmp dword [ebp - 0x424], 7
lea eax, [ebp - 0x438]
cmova eax, dword [ebp - 0x438]
push eax
call fcn.00429550
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x438]
call fcn.00428980
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x42c38f
push 0x10
push str.Fatal_error
push str.Failed_to_get_temp_path.
push 0
call edi
sub esp, 8
mov dword [esp + 4], 0xbf800000
mov dword [esp], 0
call fcn.004104e0
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x42700000
push eax
push str.Launcher
mov dword [ebp - 0x454], 0x41f00000
call fcn.00425500
add esp, 0x10
test al, al
je 0x42c4e4
lea eax, [ebp - 0x420]
push eax
push 0x104
call esi
test eax, eax
je 0x42c4d4
xorps xmm0, xmm0
mov dword [ebp - 0x478], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x474], 0
movups xmmword [ebp - 0x488], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c413
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x488]
call fcn.004279f0
push str.launcher.exe
lea eax, [ebp - 0x488]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0x450]
push eax
call fcn.00427630
add esp, 0xc
lea ecx, [ebp - 0x488]
mov byte [ebp - 4], 6
call fcn.00428980
cmp dword [ebp - 0x43c], 7
lea esi, [ebp - 0x450]
push str.https:__webdata.c7x.dev_sworroo_CristalixLauncher.exe
cmova esi, dword [ebp - 0x450]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
push 0
push 0
push esi
push str.https:__webdata.c7x.dev_sworroo_CristalixLauncher.exe
push 0
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
jns 0x42c4aa
push 0x10
push str.Fatal_error
push str.Failed_to_download_file.
push 0
call edi
cmp dword [ebp - 0x43c], 7
lea eax, [ebp - 0x450]
cmova eax, dword [ebp - 0x450]
push eax
call fcn.00429550
add esp, 4
lea ecx, [ebp - 0x450]
call fcn.00428980
jmp 0x42c4e4
push 0x10
push str.Fatal_error
push str.Failed_to_get_temp_path.
push 0
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d85d
mov esp, ebp
pop ebp
ret
push 0x526b18
call fcn.0042dbef
add esp, 4
cmp dword [0x526b18], 0xffffffff
jne 0x42c08d
push 0
push 0x4761d0
mov ecx, 0x526b00
mov dword [ebp - 4], 0
call fcn.004279f0
push 0x470ea0
call fcn.0042db5e
push 0x526b18
mov dword [ebp - 4], 0xffffffff
call fcn.0042db9e
add esp, 8
jmp 0x42c08d