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

Disassembly:
push 0x29c
mov eax, 0x4792ba
call fcn.0045053c
mov ebx, ecx
mov dword [ebp - 0x248], ebx
and dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push eax
push str.ApplyPatches
lea ecx, [ebp - 0x264]
call fcn.0041dfa0
and dword [ebp - 4], 0
call fcn.00409480
push eax
lea ecx, [ebp - 0x224]
call fcn.00408c39
mov byte [ebp - 4], 2
mov eax, dword [0x4a0390]
and dword [ebp - 0x238], 0
mov esi, dword [eax]
mov dword [ebp - 0x23c], esi
cmp esi, eax
je 0x4286a1
xor eax, eax
lea edi, [ebp - 0x258]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00409480
push eax
lea ecx, [ebp - 0x240]
call fcn.00408c39
mov byte [ebp - 4], 4
call fcn.00409480
push eax
lea ecx, [ebp - 0x230]
call fcn.00408c39
mov byte [ebp - 4], 6
mov eax, str..exe
and dword [ebp - 0x234], 0
lea ecx, [ebp - 0x244]
cmp byte [esi + 0x14], 0
mov edx, str..dll
cmove edx, eax
call fcn.0041e774
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x240]
push eax
call fcn.0040a1c3
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00409575
mov edi, dword [ebp - 0x240]
test edi, edi
jne 0x428284
mov dword [ebp - 0x220], 0x52
jmp 0x42852c
push 0
push ecx
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.0041c6ed
mov dword [ebp - 0x220], eax
pop ecx
pop ecx
test eax, eax
jne 0x42852c
and dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
or dword [ebp - 0x22c], 0xffffffff
push edi
call fcn.0040c4a0
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x220], eax
test eax, eax
je 0x4282f7
mov byte [ebp - 4], 6
cmp dword [ebp - 0x22c], 0xffffffff
je 0x42852c
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x22c], 0xffffffff
jmp 0x42852c
push 0
mov ecx, edi
call fcn.004215c0
mov dword [ebp - 0x220], eax
pop ecx
test eax, eax
je 0x42831e
push edi
push dword [esi + 0x10]
push str.Patch_Id:_u_file:_s_has_broken_signature
call fcn.0041dafb
add esp, 0xc
jmp 0x4282ce
push 0x44
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00451b90
add esp, 0xc
mov dword [ebp - 0x2a8], 0x44
cmp byte [esi + 0x14], 0
je 0x4283db
xor eax, eax
mov word [ebp - 0x14], ax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x42837b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
jmp 0x4282ce
lea eax, [ebp - 0x224]
push edi
push str._applydll
push str._emupdater
test ebx, ebx
je 0x4283a7
push ebx
push dword [0x4a02f8]
push str._s__s__s__s___s_
push eax
call fcn.00408e2a
add esp, 0x1c
jmp 0x4283bb
push dword [0x4a02f8]
push str._s__s__s___s_
push eax
call fcn.00408e2a
add esp, 0x18
lea ecx, [ebp - 0x21c]
call fcn.0040b056
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040afd8
jmp 0x42840b
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040a1c3
test ebx, ebx
je 0x428431
push ebx
push str.dummy
lea eax, [ebp - 0x224]
push str._s__s
push eax
call fcn.00408e2a
add esp, 0x10
mov eax, dword [ebp - 0x224]
cmp dword [eax - 4], 1
jle 0x428425
push dword [eax - 0xc]
lea ecx, [ebp - 0x224]
call fcn.0040907c
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x238], eax
push edi
push dword [esi + 0x10]
push str.Going_to_execute_Patch_Id:_u_from_file__s
call fcn.0041dafb
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x2a8]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp - 0x238]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42847a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x22c], 0xffffffff
je 0x42849a
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x22c], 0xffffffff
cmp dword [ebp - 0x238], 0
je 0x4284af
push ecx
lea ecx, [ebp - 0x224]
call fcn.004089f1
cmp dword [ebp - 0x220], 0
jne 0x42852c
push 0xffffffffffffffff
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x234]
push dword [esi + 0x10]
push str.Patch_Id:_u_done__exitcode:_u
call fcn.0041dafb
add esp, 0xc
cmp dword [ebp - 0x234], 0x4d5
je 0x42852c
mov eax, dword [esi + 0x10]
mov edx, str.Patches
push 0
push 0
push eax
xor ecx, ecx
mov dword [0x4a039c], eax
mov byte [0x4a03a0], 1
call fcn.004200ac
add esp, 0xc
cmp dword [0x4a0398], 0
jne 0x42852c
call fcn.004280b6
cmp dword [ebp - 0x254], 0
je 0x428541
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
je 0x428556
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi - 0xc], 0
je 0x428598
push 9
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x42858c
cmp eax, 0x20
je 0x42857c
cmp eax, 5
jne 0x42858c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jns 0x42855f
mov esi, dword [ebp - 0x23c]
mov ebx, dword [ebp - 0x248]
cmp dword [ebp - 0x220], 0
jne 0x428683
call fcn.00421f8d
test al, al
jne 0x42864f
cmp dword [ebp - 0x220], 0
jne 0x428683
cmp dword [ebp - 0x234], 0x4de
je 0x428683
cmp dword [ebp - 0x234], 0x4d5
je 0x428683
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
call fcn.00409575
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x428625
mov eax, dword [esi + 4]
jmp 0x428615
cmp esi, dword [eax + 8]
jne 0x42861b
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x42860b
mov esi, eax
mov dword [ebp - 0x23c], esi
jmp 0x428641
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jmp 0x428639
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x23c], esi
je 0x42862f
cmp esi, dword [0x4a0390]
jne 0x4281f0
jmp 0x4286a1
mov byte [0x4a02d0], 1
test ebx, ebx
je 0x428665
push ebx
mov ecx, 0x4a02d4
call fcn.0040b072
mov dword [ebp - 0x220], 0x4d5
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00409575
jmp 0x428695
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00409575
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
call fcn.00409575
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00409575
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0041e015
mov eax, esi
call fcn.004504e6
ret