Function at 0x4056f0
Capabilities:
Copy file
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xef0
mov eax, dword [0x43d00c]
lea edi, [esp + 0xcde]
xor eax, ebp
mov dword [esp + 0xee8], eax
push 0x20a
push 0
push edi
call fcn.00414f70
add esp, 0xc
push 0x104
push 0x43f42e
push edi
call fcn.00420049
add esp, 0xc
lea ebx, [esp + 0xad4]
push 0x20a
push 0
push ebx
call fcn.00414f70
add esp, 0xc
push 0x104
push 0x43f42e
push ebx
call fcn.00420049
add esp, 0xc
push ebx
call fcn.0041fbd0
add esp, 4
add eax, 0xb
cmp eax, 0x103
ja 0x405844
push str.updater.ini
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405844
lea esi, [esp + 0x8ca]
push ebx
push 0x105
push esi
push 0
push str.ExeRelPath
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405844
lea eax, [esp + 0x6c0]
push ebx
push 0x105
push eax
push 0
push str.ExeArg
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405844
lea eax, [esp + 0x6ac]
push ebx
push 0xa
push eax
push str.TRUE
push str.ExeAsync
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x405844
push 0x43826c
push esi
call fcn.004154a0
add esp, 8
test eax, eax
jne 0x405844
push 0x438266
push esi
call fcn.004154a0
add esp, 8
test eax, eax
jne 0x405844
push 0x4381ac
push esi
call fcn.004154a0
add esp, 8
test eax, eax
jne 0x405844
push 0x4381bc
push esi
call fcn.004154a0
add esp, 8
test eax, eax
je 0x40585e
xor ebx, ebx
mov ecx, dword [esp + 0xee8]
xor ecx, ebp
call fcn.00412bfe
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, word [esp + 0x8ca]
xor ebx, ebx
lea ecx, [eax - 0x2e]
movzx ecx, cx
cmp ecx, 2
jb 0x405846
movzx eax, ax
cmp eax, 0x5c
je 0x405846
lea ebx, [esp + 0x4a2]
push 0x20a
push 0
push ebx
call fcn.00414f70
add esp, 0xc
push 0x104
push 0x43f42e
push ebx
call fcn.00420049
add esp, 0xc
push ebx
call fcn.0041fbd0
add esp, 4
mov ebx, eax
push esi
call fcn.0041fbd0
add esp, 4
add eax, ebx
cmp eax, 0x103
ja 0x405844
push esi
lea eax, [esp + 0x4a6]
mov esi, eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405844
push esi
call fcn.0040ec50
add esp, 4
test al, al
je 0x405844
cmp byte [0x43f224], 0
je 0x40590d
push 1
push esi
push 0x43f42e
call fcn.0040df10
add esp, 0xc
test eax, eax
je 0x405844
lea eax, [esp + 0x298]
push str.uninstall.update
push esi
push eax
call fcn.0040ed30
add esp, 0xc
test eax, eax
je 0x405844
lea ebx, [esp + 0x8e]
push 0x20a
push 0
push ebx
call fcn.00414f70
add esp, 0xc
push 0x104
push 0x43f226
push ebx
call fcn.00420049
add esp, 0xc
push ebx
call fcn.0041fbd0
add esp, 4
add eax, 0xa
cmp eax, 0x103
ja 0x405844
push str.update.log
lea eax, [esp + 0x92]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x405844
xorps xmm0, xmm0
lea ebx, [esp + 0x70]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0
movaps xmmword [esp + 0x70], xmm0
push 0xd
push str.argv0ignored
push ebx
call fcn.00420049
add esp, 0xc
lea eax, [esp + 0x6c0]
push eax
call fcn.0041fbd0
add esp, 4
mov dword [esp + 8], eax
push ebx
call fcn.0041fbd0
add esp, 4
mov ebx, eax
add ebx, dword [esp + 8]
lea eax, [ebx + ebx + 2]
push eax
call fcn.0041f68f
add esp, 4
test eax, eax
mov dword [esp + 8], eax
je 0x405844
push ebx
lea eax, [esp + 0x74]
push eax
mov ebx, dword [esp + 0x10]
push ebx
call fcn.00420049
add esp, 0xc
lea eax, [esp + 0x6c0]
push eax
push ebx
call fcn.0041fb3d
add esp, 8
cmp byte [0x43f224], 0
je 0x405b42
mov dword [esp + 0xc], 0
push 0
lea eax, [esp + 0x29c]
push eax
lea eax, [esp + 0x96]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
xorps xmm0, xmm0
lea eax, [esp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x34], 0x4382ea
lea ecx, [esp + 0x2c]
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push edi
push 0
push 0
push 0
push 0
push 0
mov ebx, dword [esp + 0x28]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
push ebx
call fcn.0041f205
add esp, 4
test edi, edi
setne bl
je 0x405846
cmp byte [esp + 0xc], 0
jne 0x405b2b
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
call esi
push dword [esp + 0x14]
call esi
jmp 0x405846
push 6
push str.false
lea eax, [esp + 0x6b4]
push eax
call fcn.0041d538
add esp, 0xc
test eax, eax
je 0x405a31
push 2
push 0x43825a
lea eax, [esp + 0x6b4]
push eax
call fcn.0041d538
add esp, 0xc
mov cl, 1
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x405a39
jmp 0x405a31