Function at 0x428b14
Capabilities:
Create process on windows
Delete file

Disassembly:
push 0x298
mov eax, 0x47ecfb
call fcn.00454305
mov dword [ebp - 0x240], ecx
and dword [ebp - 0x224], 0
lea eax, [ebp - 0x224]
push eax
push str.ApplyPatches
lea ecx, [ebp - 0x260]
call fcn.0041e3a4
and dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0040aa2d
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [0x4a7454]
mov dword [ebp - 0x238], ebx
mov esi, dword [eax]
cmp esi, eax
je 0x429029
xor eax, eax
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x220]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0040aa2d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.0040aa2d
mov byte [ebp - 4], 3
xor edi, edi
cmp byte [esi + 0x14], 0
lea ecx, [ebp - 0x244]
mov eax, str..exe
mov dword [ebp - 0x23c], edi
mov edx, str..dll
cmove edx, eax
call fcn.0041eb87
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
push eax
call fcn.0040943e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.0040aa0b
cmp dword [ebp - 0x220], edi
jne 0x428bf8
mov dword [ebp - 0x224], 0x52
jmp 0x428ea9
mov edx, dword [ebp - 0x220]
push ecx
push edi
push ecx
mov ecx, dword [esi + 0x18]
call fcn.0041cb53
add esp, 0xc
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x428ea9
push dword [ebp - 0x220]
lea ecx, [ebp - 0x234]
call fcn.0040bf35
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x428c68
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0xffffffff
je 0x428ea9
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x234], 0xffffffff
jmp 0x428ea9
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00421b1e
mov dword [ebp - 0x224], eax
pop ecx
test eax, eax
je 0x428c97
push dword [ebp - 0x220]
push dword [esi + 0x10]
push str.Patch_Id:_u_file:_s_has_broken_signature
call fcn.0041defb
add esp, 0xc
jmp 0x428c3f
push 0x44
lea eax, [ebp - 0x2a4]
push edi
push eax
call fcn.004557e0
add esp, 0xc
mov dword [ebp - 0x2a4], 0x44
cmp byte [esi + 0x14], 0
je 0x428d51
xor eax, eax
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x428cf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
jmp 0x428c3f
push dword [ebp - 0x220]
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push str._applydll
push str._emupdater
test edi, edi
je 0x428d29
push edi
push dword [0x4a73b0]
push str._s__s__s__s___s_
push eax
call fcn.0040bd93
add esp, 0x1c
jmp 0x428d3d
push dword [0x4a73b0]
push str._s__s__s___s_
push eax
call fcn.0040bd93
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040a5c2
jmp 0x428d87
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040943e
mov edi, dword [ebp - 0x240]
test edi, edi
je 0x428db3
push edi
push str.dummy
lea eax, [ebp - 0x228]
push str._s__s
push eax
call fcn.0040bd93
add esp, 0x10
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x238], ebx
cmp dword [ebx - 4], 1
jle 0x428db3
push dword [ebx - 0xc]
lea ecx, [ebp - 0x228]
call fcn.0040a31a
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x238], ebx
push dword [ebp - 0x220]
push dword [esi + 0x10]
push str.Going_to_execute_Patch_Id:_u_from_file__s
call fcn.0041defb
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x2a4]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x428dfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0xffffffff
je 0x428e1c
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x234], 0xffffffff
test ebx, ebx
je 0x428e2c
push ecx
lea ecx, [ebp - 0x228]
call fcn.0040d63e
cmp dword [ebp - 0x224], 0
jne 0x428ea9
push 0xffffffffffffffff
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x23c]
push dword [esi + 0x10]
push str.Patch_Id:_u_done__exitcode:_u
call fcn.0041defb
add esp, 0xc
cmp dword [ebp - 0x23c], 0x4d5
je 0x428ea9
mov eax, dword [esi + 0x10]
mov edx, str.Patches
push 0
push 0
push eax
xor ecx, ecx
mov dword [0x4a7460], eax
mov byte [0x4a7464], 1
call fcn.00420457
add esp, 0xc
cmp dword [0x4a745c], 0
jne 0x428ea9
call fcn.00428a44
cmp dword [ebp - 0x250], 0
je 0x428ebe
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x428ed3
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x428f1a
push 9
pop ebx
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x428f14
cmp eax, 0x20
je 0x428f04
cmp eax, 5
jne 0x428f14
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x428ee2
mov ebx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], 0
jne 0x429005
call fcn.004224fa
test al, al
jne 0x428fcb
cmp dword [ebp - 0x224], 0
jne 0x429005
cmp dword [ebp - 0x23c], 0x4de
je 0x429005
cmp dword [ebp - 0x23c], 0x4d5
je 0x429005
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x428fa7
mov eax, dword [esi + 4]
jmp 0x428f9d
cmp esi, dword [eax + 8]
jne 0x428fa3
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x428f93
mov esi, eax
jmp 0x428fbd
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x428fbd
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x428fb1
cmp esi, dword [0x4a7454]
jne 0x428b71
jmp 0x429029
mov ecx, dword [ebp - 0x240]
mov byte [0x4a7388], 1
test ecx, ecx
je 0x428fe7
push ecx
mov ecx, 0x4a738c
call fcn.0040a5c2
mov dword [ebp - 0x224], 0x4d5
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
jmp 0x429017
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040aa0b
mov esi, dword [ebp - 0x224]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040aa0b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0041e418
mov eax, esi
call fcn.004542b4
ret