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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf10
mov eax, dword [0x41a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0xeb0], eax
xor eax, eax
mov ebx, 0x208
push ebx
push eax
mov word [ebp - 0x87c], ax
lea eax, [ebp - 0x87a]
mov edi, ecx
push eax
mov dword [ebp - 0xeb4], edi
call fcn.004056c0
mov esi, 0x104
push esi
lea eax, [ebp - 0x87c]
push edi
push eax
call fcn.00404ee0
xor eax, eax
push ebx
push eax
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push eax
call fcn.004056c0
push esi
lea eax, [ebp - 0x24c]
push edi
push eax
call fcn.00404ee0
lea eax, [ebp - 0x24c]
push str.updater.ini
push eax
call fcn.0040463e
add esp, 0x38
test eax, eax
jne 0x40428c
xor eax, eax
jmp 0x4044cb
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x24c]
push eax
push 0x105
lea eax, [ebp - 0xeac]
push eax
push 0
push str.ExeRelPath
push str.PostUpdateWin
call edi
test eax, eax
je 0x404285
lea eax, [ebp - 0x24c]
push eax
push 0x105
lea eax, [ebp - 0xa8c]
push eax
push 0
push str.ExeArg
push str.PostUpdateWin
call edi
test eax, eax
je 0x404285
lea eax, [ebp - 0x24c]
push eax
push 0xa
lea eax, [ebp - 0x38]
push eax
push str.TRUE
push str.ExeAsync
push str.PostUpdateWin
call edi
test eax, eax
je 0x404285
xor eax, eax
push ebx
push eax
mov word [ebp - 0x45c], ax
lea eax, [ebp - 0x45a]
push eax
call fcn.004056c0
push esi
push dword [ebp - 0xeb4]
lea eax, [ebp - 0x45c]
push eax
call fcn.00404ee0
lea eax, [ebp - 0xeac]
push eax
lea eax, [ebp - 0x45c]
push eax
call fcn.0040463e
add esp, 0x20
test eax, eax
je 0x404285
lea eax, [ebp - 0x45c]
push str.uninstall.update
push eax
lea edi, [ebp - 0xc9c]
call fcn.00404198
pop ecx
pop ecx
test eax, eax
je 0x404285
xor eax, eax
push ebx
mov word [ebp - 0x66c], ax
xor ebx, ebx
lea eax, [ebp - 0x66a]
push ebx
push eax
call fcn.004056c0
push esi
push dword [ebp - 0xeb0]
lea eax, [ebp - 0x66c]
push eax
call fcn.00404ee0
lea eax, [ebp - 0x66c]
push str.update.log
push eax
call fcn.0040463e
add esp, 0x20
test eax, eax
je 0x404285
push 6
xor eax, eax
pop ecx
mov word [ebp - 0x24], ax
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
push 0xd
stosw word es:[edi], ax
lea eax, [ebp - 0x24]
push str.argv0ignored
push eax
call fcn.00404ee0
lea eax, [ebp - 0x24]
push eax
call fcn.0040550b
mov edi, eax
lea eax, [ebp - 0xa8c]
push eax
call fcn.0040550b
add edi, eax
lea eax, [edi + edi + 2]
push eax
call fcn.004071c5
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x404285
push edi
lea eax, [ebp - 0x24]
push eax
push esi
call fcn.00404ee0
lea eax, [ebp - 0xa8c]
push eax
push esi
call fcn.0040729d
add esp, 0x14
push ebx
lea eax, [ebp - 0xc9c]
push eax
lea eax, [ebp - 0x66c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x3c
lea eax, [ebp - 0xf04]
push ebx
push eax
mov dword [ebp - 0xf0c], 0x44
mov dword [ebp - 0xf08], ebx
call fcn.004056c0
xor eax, eax
mov dword [ebp - 0xec4], ebx
lea edi, [ebp - 0xec0]
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xec4]
push eax
lea eax, [ebp - 0xf0c]
push eax
lea eax, [ebp - 0x87c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
lea eax, [ebp - 0x45c]
push eax
mov dword [ebp - 0xf04], 0x416550
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
push esi
setne bl
call fcn.00405912
pop ecx
test bl, bl
je 0x4044c8
push 0xffffffffffffffff
push dword [ebp - 0xec4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xec4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xec0]
call esi
movzx eax, bl
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404ed1
leave
ret