Function at 0x410c89
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
lea eax, [0x41f774]
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 + 0x48]
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 + 0x2c]
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.00410b99
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x410d9a
mov ecx, dword [ebp - 0x1c]
call fcn.00410bf9
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
cmp eax, ecx
je 0x410d60
movzx eax, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx + 1]
cmp eax, ecx
je 0x410d60
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x1c]
call fcn.00410c39
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 0x410d98
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 4]
je 0x410d98
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x410d9a
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 + 0x2c]
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 0x410e2a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
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 0x410e01
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 0x410e4e
jmp fcn.00410f25
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
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 + 0x30]
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