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

Disassembly:
push 0x298
mov eax, 0x4806a3
call fcn.004569c5
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.0041e6cc
and dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.0040aaed
mov byte [ebp - 4], 1
xor ebx, ebx
mov eax, dword [0x4c252c]
mov dword [ebp - 0x238], ebx
mov esi, dword [eax]
cmp esi, eax
je 0x429671
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.0040aaed
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x22c]
call fcn.0040aaed
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.0041eeb3
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x220]
push eax
call fcn.0040951e
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.0040aacb
cmp dword [ebp - 0x220], edi
jne 0x429240
mov dword [ebp - 0x224], 0x52
jmp 0x4294f1
mov edx, dword [ebp - 0x220]
push ecx
push edi
push ecx
mov ecx, dword [esi + 0x18]
call fcn.0041ce33
add esp, 0xc
mov dword [ebp - 0x224], eax
test eax, eax
jne 0x4294f1
push dword [ebp - 0x220]
lea ecx, [ebp - 0x234]
call fcn.0040c04f
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x230]
mov dword [ebp - 0x224], eax
test eax, eax
je 0x4292b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0xffffffff
je 0x4294f1
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x234], 0xffffffff
jmp 0x4294f1
mov ecx, dword [ebp - 0x220]
push edi
call fcn.00421f7f
mov dword [ebp - 0x224], eax
pop ecx
test eax, eax
je 0x4292df
push dword [ebp - 0x220]
push dword [esi + 0x10]
push str.Patch_Id:_u_file:_s_has_broken_signature
call fcn.0041e1d8
add esp, 0xc
jmp 0x429287
push 0x44
lea eax, [ebp - 0x2a4]
push edi
push eax
call fcn.00457e10
add esp, 0xc
mov dword [ebp - 0x2a4], 0x44
cmp byte [esi + 0x14], 0
je 0x429399
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 0x42933a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
jmp 0x429287
push dword [ebp - 0x220]
mov edi, dword [ebp - 0x240]
lea eax, [ebp - 0x228]
push str._applydll
push str._emupdater
test edi, edi
je 0x429371
push edi
push dword [0x4c2478]
push str._s__s__s__s___s_
push eax
call fcn.0040bead
add esp, 0x1c
jmp 0x429385
push dword [0x4c2478]
push str._s__s__s___s_
push eax
call fcn.0040bead
add esp, 0x18
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040a676
jmp 0x4293cf
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x22c]
call fcn.0040951e
mov edi, dword [ebp - 0x240]
test edi, edi
je 0x4293fb
push edi
push str.dummy
lea eax, [ebp - 0x228]
push str._s__s
push eax
call fcn.0040bead
add esp, 0x10
mov ebx, dword [ebp - 0x228]
mov dword [ebp - 0x238], ebx
cmp dword [ebx - 4], 1
jle 0x4293fb
push dword [ebx - 0xc]
lea ecx, [ebp - 0x228]
call fcn.0040a3ce
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.0041e1d8
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 0x429444
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0xffffffff
je 0x429464
push dword [ebp - 0x234]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x234], 0xffffffff
test ebx, ebx
je 0x429474
push ecx
lea ecx, [ebp - 0x228]
call fcn.0040d778
cmp dword [ebp - 0x224], 0
jne 0x4294f1
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.0041e1d8
add esp, 0xc
cmp dword [ebp - 0x23c], 0x4d5
je 0x4294f1
mov eax, dword [esi + 0x10]
mov edx, str.Patches
push 0
push 0
push eax
xor ecx, ecx
mov dword [0x4c2538], eax
mov byte [0x4c253c], 1
call fcn.00420834
add esp, 0xc
cmp dword [0x4c2534], 0
jne 0x4294f1
call fcn.0042908c
cmp dword [ebp - 0x250], 0
je 0x429506
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x254], 0
je 0x42951b
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x220]
cmp dword [eax - 0xc], 0
je 0x429562
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 0x42955c
cmp eax, 0x20
je 0x42954c
cmp eax, 5
jne 0x42955c
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub ebx, 1
jns 0x42952a
mov ebx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], 0
jne 0x42964d
call fcn.0042295b
test al, al
jne 0x429613
cmp dword [ebp - 0x224], 0
jne 0x42964d
cmp dword [ebp - 0x23c], 0x4de
je 0x42964d
cmp dword [ebp - 0x23c], 0x4d5
je 0x42964d
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4295ef
mov eax, dword [esi + 4]
jmp 0x4295e5
cmp esi, dword [eax + 8]
jne 0x4295eb
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4295db
mov esi, eax
jmp 0x429605
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x429605
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4295f9
cmp esi, dword [0x4c252c]
jne 0x4291b9
jmp 0x429671
mov ecx, dword [ebp - 0x240]
mov byte [0x4c2450], 1
test ecx, ecx
je 0x42962f
push ecx
mov ecx, 0x4c2454
call fcn.0040a676
mov dword [ebp - 0x224], 0x4d5
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
jmp 0x42965f
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x22c]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x220]
lea ecx, [ecx - 0x10]
call fcn.0040aacb
mov esi, dword [ebp - 0x224]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x228]
add ecx, 0xfffffff0
call fcn.0040aacb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.0041e740
mov eax, esi
call fcn.00456974
ret