Function at 0x46b203
Capabilities:
Terminate process

Disassembly:
mov dword [ebp - 0x18], eax
push 0x104
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [ebp - 0x18]
push edx
call fcn.0046b0ec
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x46b2b1
mov eax, dword [ebp - 0x18]
push eax
call fcn.0046b14c
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 0x46b26b
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 1]
cmp ecx, eax
je 0x46b26b
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0046b17c
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 0x46b2b1
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + ecx]
je 0x46b2b1
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x48]
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 - 8], 0
jmp 0x46b313
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x40
jge 0x46b332
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x40]
mov ecx, dword [ebp - 8]
mov edx, dword [eax + ecx]
add edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 8]
mov dword [eax], edx
jmp 0x46b30a
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x46b353
jmp 0x46b406
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x10], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x24]
push ecx
push 0x7000
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 8], 8
jmp 0x46b39a
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x7000
jge 0x46b3b8
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x46b391
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x44]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], eax
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0x7000
mov ecx, dword [ebp - 0x10]
push ecx
call dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x2c]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [ebp - 0x40]
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]