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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0c
mov eax, dword [0x432008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, 0x20a
lea eax, [ebp - 0xc98]
push edi
xor ebx, ebx
push ebx
push eax
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0xc98]
mov esi, 0x104
push esi
push 0x434c30
push eax
call fcn.0041073f
add esp, 0xc
lea eax, [ebp - 0x668]
push edi
push ebx
push eax
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0x668]
push esi
push 0x434c30
push eax
call fcn.0041073f
add esp, 0xc
lea ecx, [ebp - 0x668]
mov edx, str.updater.ini
call fcn.004091e5
test eax, eax
je 0x4043c2
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x668]
push eax
push 0x105
lea eax, [ebp - 0x248]
mov byte [ebp - 0xea9], 1
push eax
push ebx
push str.ExeRelPath
push str.PostUpdateWin
call esi
test eax, eax
je 0x4043c2
lea eax, [ebp - 0x668]
push eax
push 0x105
lea eax, [ebp - 0xa88]
push eax
push ebx
push str.ExeArg
push str.PostUpdateWin
call esi
test eax, eax
je 0x4043c2
lea eax, [ebp - 0x668]
push eax
push 0xa
lea eax, [ebp - 0x18]
push eax
push str.TRUE
push str.ExeAsync
push str.PostUpdateWin
call esi
test eax, eax
je 0x4043c2
lea eax, [ebp - 0x248]
push 0x42cc40
push eax
call fcn.0040c89d
pop ecx
pop ecx
test eax, eax
jne 0x4043c2
lea eax, [ebp - 0x248]
push 0x42d6ec
push eax
call fcn.0040c89d
pop ecx
pop ecx
test eax, eax
jne 0x4043c2
lea eax, [ebp - 0x248]
push 0x42d6f4
push eax
call fcn.0040c89d
pop ecx
pop ecx
test eax, eax
jne 0x4043c2
lea eax, [ebp - 0x248]
push 0x42d6fc
push eax
call fcn.0040c89d
pop ecx
pop ecx
test eax, eax
jne 0x4043c2
cmp word [ebp - 0x248], 0x2e
je 0x4043c2
cmp word [ebp - 0x248], 0x5c
je 0x4043c2
cmp word [ebp - 0x248], 0x2f
je 0x4043c2
push edi
lea eax, [ebp - 0x458]
push ebx
push eax
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0x458]
mov esi, 0x104
push esi
push 0x434c30
push eax
call fcn.0041073f
add esp, 0xc
lea edx, [ebp - 0x248]
lea ecx, [ebp - 0x458]
call fcn.004091e5
test eax, eax
je 0x4043c2
lea ecx, [ebp - 0x458]
call fcn.00408d39
test al, al
je 0x4043c2
cmp byte [0x433b29], bl
je 0x4041c2
push ecx
lea edx, [ebp - 0x458]
call fcn.0040884c
pop ecx
test eax, eax
je 0x4043c2
push 0x42d700
lea edx, [ebp - 0x458]
lea ecx, [ebp - 0xea8]
call fcn.00408e34
pop ecx
test eax, eax
je 0x4043c2
push edi
lea eax, [ebp - 0x878]
push ebx
push eax
call fcn.0040d680
add esp, 0xc
lea eax, [ebp - 0x878]
push esi
push 0x434810
push eax
call fcn.0041073f
add esp, 0xc
lea ecx, [ebp - 0x878]
mov edx, str.update.log
call fcn.004091e5
test eax, eax
je 0x4043c2
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
push 0xd
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x34]
push str.argv0ignored
push eax
call fcn.0041073f
lea ecx, [ebp - 0xa88]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404245
sub ecx, edx
lea edx, [ebp - 0x34]
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x40425a
sub edx, esi
sar edx, 1
lea esi, [edx + ecx]
lea eax, [esi*2 + 2]
push eax
call fcn.0040fb11
mov ebx, eax
pop ecx
test ebx, ebx
je 0x4043c2
push esi
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.0041073f
lea edx, [ebp - 0xa88]
add esp, 0xc
mov esi, edx
xor ecx, ecx
mov ax, word [edx]
add edx, 2
cmp ax, cx
jne 0x40429c
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x4042ac
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp byte [0x433b29], 0
rep movsb byte es:[edi], byte [esi]
jne 0x4042fd
push 6
lea eax, [ebp - 0x18]
push str.false
push eax
call fcn.00414ca8
add esp, 0xc
test eax, eax
je 0x4042fd
push 2
lea eax, [ebp - 0x18]
push 0x42d764
push eax
call fcn.00414ca8
add esp, 0xc
test eax, eax
jne 0x404304
mov byte [ebp - 0xea9], 0
push 0
lea eax, [ebp - 0xea8]
push eax
lea eax, [ebp - 0x878]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x40
lea eax, [ebp - 0xf04]
mov dword [ebp - 0xf08], 0x44
push 0
push eax
call fcn.0040d680
xor eax, eax
mov dword [ebp - 0xf00], 0x42caec
lea edi, [ebp - 0xebc]
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xebc]
push eax
lea eax, [ebp - 0xf08]
push eax
lea eax, [ebp - 0xc98]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push ebx
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
test esi, esi
push ebx
setne byte [ebp - 0xeaa]
call fcn.0040faba
pop ecx
test esi, esi
je 0x4043ba
cmp byte [ebp - 0xea9], 0
jne 0x4043a4
push 0xffffffffffffffff
push dword [ebp - 0xebc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xebc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xeb8]
call esi
mov al, byte [ebp - 0xeaa]
jmp 0x4043c4
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b844
mov esp, ebp
pop ebp
ret