Function at 0x45ba49
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov dword [ebp - 8], 0x4b40f4
push 0
call fcn.0045b9a9
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call fcn.0045b9a9
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
add byte [ecx + 0x468e845], cl
add dword [eax], eax
add byte [ebx + 0x6a51e84d], cl
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetModuleFileNameW
mov edx, dword [ebp - 0x18]
push edx
call fcn.0045b6f9
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x2c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x45bb32
mov eax, dword [ebp - 0x18]
push eax
call fcn.0045b759
add esp, 4
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx]
cmp ecx, eax
je 0x45baec
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
cmp ecx, eax
je 0x45baec
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0045b8f9
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + ecx]
je 0x45bb32
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + ecx]
je 0x45bb32
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0xc], 0
jmp 0x45bb97
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
cmp dword [ebp - 0xc], ecx
jae 0x45bbbb
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x45bb8b
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0045b7d9
add esp, 8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x45bbde
jmp 0x45bc98
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x24]
add eax, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0xc], 8
jmp 0x45bc2a
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x30]
cmp dword [ebp - 0xc], eax
jae 0x45bc4a
mov ecx, dword [ebp - 0x1c]
add ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [eax], edx
jmp 0x45bc1e
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], edx
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x30]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [ebp - 0x40]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]