Function at 0x405170
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 esi, [esp + 0xcde]
xor eax, ebp
mov dword [esp + 0xee8], eax
push 0x20a
push 0
push esi
call fcn.00415350
add esp, 0xc
push 0x104
push 0x43f47c
push esi
call fcn.00420489
add esp, 0xc
lea ebx, [esp + 0xad4]
push 0x20a
push 0
push ebx
call fcn.00415350
add esp, 0xc
push 0x104
push 0x43f47c
push ebx
call fcn.00420489
add esp, 0xc
push str.updater.ini
push ebx
call fcn.00411c00
add esp, 8
test eax, eax
je 0x4052af
lea edi, [esp + 0x8ca]
push ebx
push 0x105
push edi
push 0
push str.ExeRelPath
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4052af
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 0x4052af
lea eax, [esp + 0x6ac]
push ebx
push 0xa
push eax
push 0x4384c4
push str.ExeAsync
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4052af
push 0x438594
push edi
call fcn.00415880
add esp, 8
test eax, eax
jne 0x4052af
push 0x43858e
push edi
call fcn.00415880
add esp, 8
test eax, eax
jne 0x4052af
push 0x4384be
push edi
call fcn.00415880
add esp, 8
test eax, eax
jne 0x4052af
push 0x4384ce
push edi
call fcn.00415880
add esp, 8
test eax, eax
je 0x4052c9
xor ebx, ebx
mov ecx, dword [esp + 0xee8]
xor ecx, ebp
call fcn.00412fa1
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]
cmp cx, 2
jb 0x4052b1
cmp ax, 0x5c
je 0x4052b1
lea ebx, [esp + 0x4a2]
push 0x20a
push 0
push ebx
call fcn.00415350
add esp, 0xc
push 0x104
push 0x43f47c
push ebx
call fcn.00420489
add esp, 0xc
push edi
push ebx
call fcn.00411c00
add esp, 8
test eax, eax
je 0x4052af
push ebx
call fcn.00410bd0
add esp, 4
test al, al
je 0x4052af
cmp byte [0x43f478], 0
je 0x40534f
push 1
lea eax, [esp + 0x4a6]
push eax
push 0x43f47c
call fcn.004100b0
add esp, 0xc
test eax, eax
je 0x4052af
lea ecx, [esp + 0x298]
push str.uninstall.update
lea eax, [esp + 0x4a6]
push eax
push ecx
call fcn.00410e70
add esp, 0xc
test eax, eax
je 0x4052af
lea eax, [esp + 0x8e]
push 0x20a
push 0
push eax
call fcn.00415350
add esp, 0xc
cmp byte [0x43f479], 1
jne 0x4055c1
lea eax, [esp + 0x8e]
push eax
push 0x4381c0
push 0x43ec50
call fcn.00411050
add esp, 0xc
test eax, eax
je 0x4052af
xorps xmm0, xmm0
lea edi, [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 edi
call fcn.00420489
add esp, 0xc
lea eax, [esp + 0x6c0]
push eax
call fcn.00420010
add esp, 4
mov dword [esp + 8], eax
push edi
call fcn.00420010
add esp, 4
mov ebx, eax
add ebx, dword [esp + 8]
lea eax, [ebx + ebx + 2]
push eax
call fcn.0041facb
add esp, 4
test eax, eax
mov dword [esp + 8], eax
je 0x4052af
push ebx
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.00420489
add esp, 0xc
lea eax, [esp + 0x6c0]
push eax
push edi
call fcn.0041ff7d
add esp, 8
cmp byte [0x43f478], 0
je 0x405578
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], 0x438612
lea ecx, [esp + 0x2c]
movaps xmmword [esp + 0x10], xmm0
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
push 0
mov esi, dword [esp + 0x28]
push esi
lea eax, [esp + 0x4c6]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
push esi
call fcn.0041f641
add esp, 4
test edi, edi
setne bl
je 0x4052b1
cmp byte [esp + 0xc], 0
jne 0x405561
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 0x4052b1
push 6
push str.false
lea eax, [esp + 0x6b4]
push eax
call fcn.0041d974
add esp, 0xc
test eax, eax
je 0x405460
push 2
push 0x438582
lea eax, [esp + 0x6b4]
push eax
call fcn.0041d974
add esp, 0xc
mov cl, 1
test eax, eax
mov dword [esp + 0xc], ecx
jne 0x405468
jmp 0x405460
push 0x104
push 0x43ec50
lea eax, [esp + 0x96]
mov edi, eax
push eax
call fcn.00420489
add esp, 0xc
push 0x4381b4
push edi
call fcn.00411c00
add esp, 8
test eax, eax
jne 0x4053ba
jmp 0x4052af