Function at 0x406afc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
test eax, eax
jle 0x406917
cmp eax, 2
jle 0x406910
cmp eax, 7
jne 0x406917
mov eax, 4
jmp 0x406921
push ecx
call dword [sym.imp.libhl.dll_hl_type_size]
add esp, 4
dec eax
cmp eax, 7
ja case.0x40692b.3
jmp dword [eax*4 + 0x406b48]
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 3
push eax
lea eax, [edi + 0x48]
mov dword [ebp - 4], 0
push eax
mov edx, 4
mov dword [ebp - 0xc], 1
mov ecx, edi
call fcn.004043b0
add esp, 8
mov dword [ebp - 0x10], 5
mov edx, esi
mov dword [ebp - 0xc], 0x40
mov ecx, edi
call fcn.00406090
add esp, 4
mov edx, 0x32
mov ecx, edi
push 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004043b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 3
push eax
lea eax, [edi + 0x48]
mov dword [ebp - 4], 0
push eax
mov edx, 4
mov dword [ebp - 0xc], 2
mov ecx, edi
call fcn.004043b0
add esp, 0xc
mov dword [ebp - 0x10], 5
mov edx, esi
mov dword [ebp - 0xc], 0x40
mov ecx, edi
push 1
call fcn.00405ef0
add esp, 4
mov edx, 0x35
mov ecx, edi
push 0
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004043b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 4], 4
jge 0x406a12
push 1
mov edx, esi
mov ecx, edi
call fcn.00405ef0
add esp, 4
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x406a23
cmp dword [ecx], 1
jne 0x406a23
call fcn.00405db0
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x406a2d
lea eax, [esi + 0x10]
push 0
push 0x416560
push eax
mov edx, 2
mov ecx, edi
call fcn.004043b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0xc]
mov eax, ecx
test ecx, ecx
jne 0x406a57
lea eax, [esi + 0x10]
cmp dword [eax], 1
jne 0x406abf
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 3
push eax
lea eax, [edi + 0x48]
mov dword [ebp - 4], 0
push eax
mov edx, 4
mov dword [ebp - 0xc], 8
mov ecx, edi
call fcn.004043b0
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
jne 0x406a94
lea eax, [esi + 0x10]
push 0
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 5
push eax
mov edx, 0x1d
mov dword [ebp - 0xc], 0x40
mov ecx, edi
call fcn.004043b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x10], 2
lea ebx, [esi + 0x10]
jne 0x406af7
call fcn.00405db0
add dword [esi], 4
mov edx, 2
push 0
push 0x416560
push ebx
mov ecx, edi
call fcn.004043b0
add esp, 0xc
add dword [esi], 0xfffffffc
push 0
push 0x416560
push ebx
jmp 0x406a35
push 0x52b
push 0
push str.JIT_ERROR__d__jit.c_line__d__n
call fcn.00401010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x406b16
int3
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 0x52e
push dword [esi + 4]
push str.JIT_ERROR__d__jit.c_line__d__n
call fcn.00401010
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x406b3e
int3
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
xor ch, byte [ecx + 0x40]
add byte [edi + 503332969], dl
imul eax, dword [eax], 0xfffffffe
imul eax, dword [eax], case.0x40692b.3
push ds
imul eax, dword [eax], 30
imul eax, dword [eax], 0x4b
push 0x40
add ah, cl
int3