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

Disassembly:
push ebp
lea ebp, [esp - 0xe70]
sub esp, 0xeec
mov eax, dword [0x427d40]
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.0040b2f0
mov edi, 0x104
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0x60c]
push eax
call fcn.0040dcb3
xor eax, eax
push esi
mov word [ebp + 0xc30], ax
lea eax, [ebp + 0xc32]
push ebx
push eax
call fcn.0040b2f0
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0xc30]
push eax
call fcn.0040dcb3
lea eax, [ebp + 0xc30]
push str.updater.ini
push eax
call fcn.00405f31
add esp, 0x38
test eax, eax
jne 0x406486
xor eax, eax
jmp 0x40670d
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 0x40647f
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 0x40647f
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 0x40647f
xor eax, eax
push esi
mov word [ebp + 0xa24], ax
lea eax, [ebp + 0xa26]
push ebx
push eax
call fcn.0040b2f0
push edi
push dword [ebp - 0x20]
lea eax, [ebp + 0xa24]
push eax
call fcn.0040dcb3
lea eax, [ebp + 0x1f4]
push eax
lea eax, [ebp + 0xa24]
push eax
call fcn.00405f31
add esp, 0x20
test eax, eax
je 0x40647f
push str.uninstall.update
lea eax, [ebp + 0xa24]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00406371
add esp, 0xc
test eax, eax
je 0x40647f
xor eax, eax
push esi
mov word [ebp + 0x818], ax
lea eax, [ebp + 0x81a]
push ebx
push eax
call fcn.0040b2f0
push edi
push dword [ebp - 0x28]
lea eax, [ebp + 0x818]
push eax
call fcn.0040dcb3
lea eax, [ebp + 0x818]
push str.update.log
push eax
call fcn.00405f31
add esp, 0x20
test eax, eax
je 0x40647f
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.0040dcb3
lea eax, [ebp + 0xe50]
push eax
call fcn.0040b00d
mov edi, eax
lea eax, [ebp + 0x400]
push eax
call fcn.0040b00d
add edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.0040b5b2
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x40647f
push edi
lea eax, [ebp + 0xe50]
push eax
push esi
call fcn.0040dcb3
lea eax, [ebp + 0x400]
push eax
push esi
call fcn.0040d595
add esp, 0x14
cmp byte [ebp + 0xe80], bl
jne 0x406665
push 6
lea eax, [ebp + 0xe3c]
push 0x421568
push eax
call fcn.0040f1a8
add esp, 0xc
test eax, eax
je 0x406665
push 2
lea eax, [ebp + 0xe3c]
push 0x421564
push eax
call fcn.0040f1a8
add esp, 0xc
test eax, eax
jne 0x406668
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.0040b2f0
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], 0x41f324
push eax
cmp dword [ebp - 0x24], ebx
je 0x4066d1
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
jmp 0x4066d7
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
push esi
setne byte [ebp - 0x19]
call fcn.0040b0b8
pop ecx
cmp byte [ebp - 0x19], bl
je 0x406709
cmp byte [ebp - 0x1a], bl
jne 0x4066f9
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.0040b2d4
add ebp, 0xe70
leave
ret