Function at 0x422955
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], 0x571a64
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x70]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_LocalAlloc]
call eax
sub esp, 8
mov dword [ebp - 0x18], eax
mov dword [esp + 8], 0x104
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call eax
sub esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.004228b7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x5c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x422a14
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0042290f
mov dword [ebp - 0x20], eax
add dword [ebp - 0x1c], 4
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
je 0x422a14
mov eax, dword [ebp - 0x1c]
add eax, 4
mov eax, dword [eax]
cmp dword [ebp - 0x20], eax
je 0x422a14
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0xc], 4
mov eax, dword [ebp - 0x18]
add eax, 0x20a
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x28]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call eax
sub esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
call eax
sub esp, 0x14
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x422c2a
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x64]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x50]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
call eax
sub esp, 0x18
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x422c2d
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x18]
lea eax, [ebp - 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov eax, dword [ebp - 0x3c]
call eax
sub esp, 0x10
test eax, eax
je 0x422b79
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x422b79
mov eax, 1
jmp 0x422b7e
mov eax, 0
test al, al
je 0x422c30
mov eax, dword [ebp - 0x50]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x28]
je 0x422c33
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xff
jg 0x422bd2
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [eax]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
add eax, edx
mov edx, dword [ebp - 0x48]
add edx, ecx
mov dword [eax], edx
add dword [ebp - 0xc], 4
jmp 0x422ba7
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x422c36
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x54]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
sub esp, 0x10
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0
jmp 0x422c37
nop
jmp 0x422c37
nop
jmp 0x422c37
nop
jmp 0x422c37
nop
jmp 0x422c37
nop
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
nop
nop