Function at 0x420d10
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
lea eax, [0x4381ac]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x34]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
sub esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 8], 0x104
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
sub esp, 0xc
mov ecx, dword [ebp - 0x1c]
call fcn.00420c20
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x420e21
mov ecx, dword [ebp - 0x1c]
call fcn.00420c80
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
cmp eax, ecx
je 0x420de7
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx + 1]
cmp eax, ecx
je 0x420de7
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x1c]
call fcn.00420cc0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x18]
add eax, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx]
je 0x420e1f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
je 0x420e1f
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x420e21
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ecx, ecx
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
sub esp, 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x20
jge 0x420eb1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
jmp 0x420e88
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x40]
mov dword [esp], ecx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
sub esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x420ed5
jmp 0x420fad
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x28]
mov edx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [esp], edx
mov dword [esp + 4], 0x6000
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x24]
add eax, ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax + 4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 8], 8
cmp dword [ebp - 8], 0x6000
jge 0x420f4c
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov eax, dword [eax + ecx]
add eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
jmp 0x420f23
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
lea esi, [ebp - 0x28]
mov dword [esp], edx
mov dword [esp + 4], 0x6000
mov dword [esp + 8], ecx
mov dword [esp + 0xc], esi
call eax
sub esp, 0x10
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + 0x10]
add eax, ecx
mov ecx, dword [ebp - 0x14]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call eax
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]