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

Disassembly:
push 0x29c
mov eax, 0x468a5a
call fcn.00463b54
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.0041bb53
and dword [ebp - 4], 0
call fcn.004068d0
push eax
lea ecx, [ebp - 0x224]
call fcn.00405f99
mov byte [ebp - 4], 2
mov eax, dword [0x48bd34]
and dword [ebp - 0x238], 0
mov esi, dword [eax]
mov dword [ebp - 0x23c], esi
cmp esi, eax
je 0x426642
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.004068d0
push eax
lea ecx, [ebp - 0x240]
call fcn.00405f99
mov byte [ebp - 4], 4
call fcn.004068d0
push eax
lea ecx, [ebp - 0x230]
call fcn.00405f99
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.0041c23b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x240]
push eax
call fcn.0040764f
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.00406985
mov edi, dword [ebp - 0x240]
test edi, edi
jne 0x426225
mov dword [ebp - 0x220], 0x52
jmp 0x4264cd
push 0
push ecx
mov ecx, dword [esi + 0x18]
mov edx, edi
call fcn.0041a2b7
mov dword [ebp - 0x220], eax
pop ecx
pop ecx
test eax, eax
jne 0x4264cd
and dword [ebp - 0x228], eax
lea ecx, [ebp - 0x22c]
or dword [ebp - 0x22c], 0xffffffff
push edi
call fcn.00409673
mov dword [ebp - 0x228], eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x220], eax
test eax, eax
je 0x426298
mov byte [ebp - 4], 6
cmp dword [ebp - 0x22c], 0xffffffff
je 0x4264cd
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x22c], 0xffffffff
jmp 0x4264cd
push 0
mov ecx, edi
call fcn.0041ed18
mov dword [ebp - 0x220], eax
pop ecx
test eax, eax
je 0x4262bf
push edi
push dword [esi + 0x10]
push str.Patch_Id:_u_file:_s_has_broken_signature
call fcn.0041b909
add esp, 0xc
jmp 0x42626f
push 0x44
lea eax, [ebp - 0x2a8]
push 0
push eax
call fcn.00441660
add esp, 0xc
mov dword [ebp - 0x2a8], 0x44
cmp byte [esi + 0x14], 0
je 0x42637c
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 0x42631c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
jmp 0x42626f
lea eax, [ebp - 0x224]
push edi
push str._applydll
push str._emupdater
test ebx, ebx
je 0x426348
push ebx
push dword [0x48bc98]
push str._s__s__s__s___s_
push eax
call fcn.00406215
add esp, 0x1c
jmp 0x42635c
push dword [0x48bc98]
push str._s__s__s___s_
push eax
call fcn.00406215
add esp, 0x18
lea ecx, [ebp - 0x21c]
call fcn.004082a0
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x230]
call fcn.00408222
jmp 0x4263ac
lea eax, [ebp - 0x240]
push eax
lea ecx, [ebp - 0x230]
call fcn.0040764f
test ebx, ebx
je 0x4263d2
push ebx
push str.dummy
lea eax, [ebp - 0x224]
push str._s__s
push eax
call fcn.00406215
add esp, 0x10
mov eax, dword [ebp - 0x224]
cmp dword [eax - 4], 1
jle 0x4263c6
push dword [eax - 0xc]
lea ecx, [ebp - 0x224]
call fcn.00406462
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.0041b909
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 0x42641b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 6
cmp dword [ebp - 0x22c], 0xffffffff
je 0x42643b
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 0x22c], 0xffffffff
cmp dword [ebp - 0x238], 0
je 0x426450
push ecx
lea ecx, [ebp - 0x224]
call fcn.00405ee3
cmp dword [ebp - 0x220], 0
jne 0x4264cd
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.0041b909
add esp, 0xc
cmp dword [ebp - 0x234], 0x4d5
je 0x4264cd
mov eax, dword [esi + 0x10]
mov edx, str.Patches
push 0
push 0
push eax
xor ecx, ecx
mov dword [0x48bd40], eax
mov byte [0x48bd44], 1
call fcn.0041dbcf
add esp, 0xc
cmp dword [0x48bd3c], 0
jne 0x4264cd
call fcn.00426057
cmp dword [ebp - 0x254], 0
je 0x4264e2
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x258], 0
je 0x4264f7
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi - 0xc], 0
je 0x426539
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 0x42652d
cmp eax, 0x20
je 0x42651d
cmp eax, 5
jne 0x42652d
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jns 0x426500
mov esi, dword [ebp - 0x23c]
mov ebx, dword [ebp - 0x248]
cmp dword [ebp - 0x220], 0
jne 0x426624
call fcn.0041f691
test al, al
jne 0x4265f0
cmp dword [ebp - 0x220], 0
jne 0x426624
cmp dword [ebp - 0x234], 0x4de
je 0x426624
cmp dword [ebp - 0x234], 0x4d5
je 0x426624
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
call fcn.00406985
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4265c6
mov eax, dword [esi + 4]
jmp 0x4265b6
cmp esi, dword [eax + 8]
jne 0x4265bc
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4265ac
mov esi, eax
mov dword [ebp - 0x23c], esi
jmp 0x4265e2
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jmp 0x4265da
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
mov dword [ebp - 0x23c], esi
je 0x4265d0
cmp esi, dword [0x48bd34]
jne 0x426191
jmp 0x426642
mov byte [0x48bc90], 1
test ebx, ebx
je 0x426606
push ebx
mov ecx, 0x48bc94
call fcn.004082bc
mov dword [ebp - 0x220], 0x4d5
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00406985
jmp 0x426636
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x230]
lea ecx, [ecx - 0x10]
call fcn.00406985
mov byte [ebp - 4], 2
lea ecx, [edi - 0x10]
call fcn.00406985
mov esi, dword [ebp - 0x220]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.00406985
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
call fcn.0041bbc1
mov eax, esi
call fcn.00463afe
ret