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

Disassembly:
push ebp
lea ebp, [esp - 0xe70]
sub esp, 0xeec
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp + 0xe6c], eax
mov eax, dword [ebp + 0xe78]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xe7c]
push ebx
push esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0xe84]
push edi
mov dword [ebp - 0x24], eax
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp + 0x60c], ax
xor ebx, ebx
lea eax, [ebp + 0x60e]
push ebx
push eax
call fcn.00405140
mov edi, 0x104
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0x60c]
push eax
call fcn.004052e9
xor eax, eax
push esi
mov word [ebp + 0xc30], ax
lea eax, [ebp + 0xc32]
push ebx
push eax
call fcn.00405140
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0xc30]
push eax
call fcn.004052e9
lea eax, [ebp + 0xc30]
push str.updater.ini
push eax
call fcn.004042ba
add esp, 0x38
test eax, eax
jne 0x4047f5
xor eax, eax
jmp 0x404a7c
lea eax, [ebp + 0xc30]
push eax
push 0x105
lea eax, [ebp + 0x1f4]
push eax
push ebx
push str.ExeRelPath
push str.PostUpdateWin
mov byte [ebp - 0x1a], 1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4047ee
lea eax, [ebp + 0xc30]
push eax
push 0x105
lea eax, [ebp + 0x400]
push eax
push ebx
push str.ExeArg
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4047ee
lea eax, [ebp + 0xc30]
push eax
push 0xa
lea eax, [ebp + 0xe3c]
push eax
push str.TRUE
push str.ExeAsync
push str.PostUpdateWin
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
je 0x4047ee
xor eax, eax
push esi
mov word [ebp + 0xa24], ax
lea eax, [ebp + 0xa26]
push ebx
push eax
call fcn.00405140
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0xa24]
push eax
call fcn.004052e9
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp + 0xa24]
push eax
call fcn.004042ba
add esp, 0x20
test eax, eax
je 0x4047ee
push str.uninstall.update
lea eax, [ebp + 0xa24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004046e0
add esp, 0xc
test eax, eax
je 0x4047ee
xor eax, eax
push esi
mov word [ebp + 0x818], ax
lea eax, [ebp + 0x81a]
push ebx
push eax
call fcn.00405140
push edi
push dword [ebp - 0x28]
lea eax, [ebp + 0x818]
push eax
call fcn.004052e9
lea eax, [ebp + 0x818]
push str.update.log
push eax
call fcn.004042ba
add esp, 0x20
test eax, eax
je 0x4047ee
push 6
xor eax, eax
pop ecx
mov word [ebp + 0xe50], ax
lea edi, [ebp + 0xe52]
rep stosd dword es:[edi], eax
push 0xd
stosw word es:[edi], ax
lea eax, [ebp + 0xe50]
push str.argv0ignored
push eax
call fcn.004052e9
lea eax, [ebp + 0xe50]
push eax
call fcn.00404fa8
mov edi, eax
lea eax, [ebp + 0x400]
push eax
call fcn.00404fa8
add edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.004056dd
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x4047ee
push edi
lea eax, [ebp + 0xe50]
push eax
push esi
call fcn.004052e9
lea eax, [ebp + 0x400]
push eax
push esi
call fcn.0040568b
add esp, 0x14
cmp byte [ebp + 0xe80], bl
jne 0x4049d4
push 6
lea eax, [ebp + 0xe3c]
push 0x4158f0
push eax
call fcn.00407f1f
add esp, 0xc
test eax, eax
je 0x4049d4
push 2
lea eax, [ebp + 0xe3c]
push 0x4158ec
push eax
call fcn.00407f1f
add esp, 0xc
test eax, eax
jne 0x4049d7
mov byte [ebp - 0x1a], bl
push ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x818]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3c
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x7c], 0x44
mov dword [ebp - 0x78], ebx
call fcn.00405140
xor eax, eax
mov dword [ebp - 0x38], ebx
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x60c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp + 0xa24]
push esi
mov dword [ebp - 0x74], 0x414d18
push eax
cmp dword [ebp - 0x24], ebx
je 0x404a40
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x404a46
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
push esi
setne byte [ebp - 0x19]
call fcn.0040577c
pop ecx
cmp byte [ebp - 0x19], bl
je 0x404a78
cmp byte [ebp - 0x1a], bl
jne 0x404a68
push 0xffffffffffffffff
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x34]
call esi
movzx eax, byte [ebp - 0x19]
mov ecx, dword [ebp + 0xe6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004051ba
add ebp, 0xe70
leave
ret